home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_388_a1E3 < prev    next >
Unknown  |  1994-07-14  |  18.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 29 00 00 06 29 00 00 | 00 29 61 31 45 33 00 00 |.)...)..|.)a1E3..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0f 44 6f 54 72 65 | 65 4f 62 6a 4d 65 74 68 |...DoTre|eObjMeth|
|00000060| 6f 64 00 00 06 00 00 00 | 00 00 9b 00 00 06 2a 00 |od......|......*.|
|00000070| 00 00 9b 00 00 00 14 03 | c1 00 28 05 7e 00 ff 00 |........|..(.~...|
|00000080| 00 00 00 00 00 0f a8 00 | 00 00 00 4e 1c 00 00 00 |........|...N....|
|00000090| 09 00 00 00 04 00 04 ff | fc ff fa 00 04 00 04 ff |........|........|
|000000a0| fc ff fc 00 00 00 00 00 | 00 00 00 83 00 0b 40 10 |........|......@.|
|000000b0| 6b 53 63 72 65 65 6e 41 | 50 49 2f 31 39 39 39 36 |kScreenA|PI/19996|
|000000c0| 00 06 47 65 6e 65 76 61 | 00 00 41 6c 6f 6e 67 20 |..Geneva|..Along |
|000000d0| 44 6f 54 72 65 65 4f 62 | 6a 4d 65 74 68 6f 64 28 |DoTreeOb|jMethod(|
|000000e0| 54 72 65 65 4f 62 6a 48 | 6e 64 6c 20 68 6e 64 6c |TreeObjH|ndl hndl|
|000000f0| 2c 20 73 68 6f 72 74 20 | 6d 65 73 73 61 67 65 2c |, short |message,|
|00000100| 20 6c 6f 6e 67 20 64 61 | 74 61 29 3b 00 00 00 06 | long da|ta);....|
|00000110| 00 00 00 00 00 b1 00 00 | 06 2b 00 00 00 b1 00 00 |........|.+......|
|00000120| 00 00 03 c1 00 14 05 7e | 00 ff 00 00 00 00 00 00 |.......~|........|
|00000130| 0f a8 00 00 00 00 4e 1d | 00 00 00 09 00 00 00 04 |......N.|........|
|00000140| 00 04 ff fc ff fa 00 04 | 00 04 ff fc ff fc 00 00 |........|........|
|00000150| 00 00 00 00 00 00 83 00 | 0b 40 14 6b 53 63 72 65 |........|.@.kScre|
|00000160| 65 6e 4f 6e 65 4c 69 6e | 65 2f 31 39 39 39 37 00 |enOneLin|e/19997.|
|00000170| 06 47 65 6e 65 76 61 00 | 00 53 49 66 20 74 68 65 |.Geneva.|.SIf the|
|00000180| 20 6f 62 6a 65 63 74 20 | 68 61 73 20 61 20 6d 65 | object |has a me|
|00000190| 74 68 6f 64 20 70 72 6f | 63 65 64 75 72 65 2c 20 |thod pro|cedure, |
|000001a0| 63 61 6c 6c 20 69 74 2e | 20 20 49 66 20 6e 6f 20 |call it.| If no |
|000001b0| 6d 65 74 68 6f 64 20 70 | 72 6f 63 65 64 75 72 65 |method p|rocedure|
|000001c0| 2c 20 64 6f 20 6e 6f 74 | 68 69 6e 67 2e 00 00 00 |, do not|hing....|
|000001d0| 06 00 00 00 00 00 44 00 | 00 06 2c 00 00 00 44 00 |......D.|..,...D.|
|000001e0| 00 00 00 02 6b 04 40 02 | 6c 01 00 00 00 00 00 00 |....k.@.|l.......|
|000001f0| 01 0f f1 00 00 00 00 00 | 00 00 00 00 0c 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 06 00 00 00 | 00 01 7f 00 00 06 2d 00 |........|......-.|
|00000230| 00 01 7f 00 00 00 00 02 | 6b 02 28 03 c1 00 ff 00 |........|k.(.....|
|00000240| 00 00 00 00 00 0f a8 00 | 00 00 00 4e 16 00 00 00 |........|...N....|
|00000250| 09 00 00 00 04 00 04 ff | fc ff fa 00 04 00 04 ff |........|........|
|00000260| fc ff fc 00 00 00 00 00 | 00 00 00 83 00 0b 40 0b |........|......@.|
|00000270| 6c 69 6e 6b 73 2f 31 39 | 39 39 30 00 06 4d 6f 6e |links/19|990..Mon|
|00000280| 61 63 6f 00 01 14 61 31 | 35 39 2c 43 6f 70 79 43 |aco...a1|59,CopyC|
|00000290| 68 69 6c 64 0d 61 31 42 | 31 2c 44 69 73 70 6f 73 |hild.a1B|1,Dispos|
|000002a0| 65 43 68 69 6c 64 0d 61 | 31 43 46 2c 44 6f 46 54 |eChild.a|1CF,DoFT|
|000002b0| 72 65 65 4d 65 74 68 6f | 64 0d 61 31 44 41 2c 44 |reeMetho|d.a1DA,D|
|000002c0| 6f 4e 75 6d 62 65 72 54 | 72 65 65 0d 61 31 45 33 |oNumberT|ree.a1E3|
|000002d0| 2c 44 6f 54 72 65 65 4f | 62 6a 4d 65 74 68 6f 64 |,DoTreeO|bjMethod|
|000002e0| 0d 61 32 32 42 2c 47 65 | 74 52 6f 6f 74 48 6e 64 |.a22B,Ge|tRootHnd|
|000002f0| 6c 0d 61 32 34 32 2c 48 | 6e 64 6c 32 49 44 0d 61 |l.a242,H|ndl2ID.a|
|00000300| 32 34 34 2c 48 52 65 61 | 64 54 72 65 65 0d 61 32 |244,HRea|dTree.a2|
|00000310| 34 35 2c 48 52 65 61 64 | 54 72 65 65 4f 62 6a 44 |45,HRead|TreeObjD|
|00000320| 61 74 61 0d 61 32 34 37 | 2c 48 57 72 69 74 65 54 |ata.a247|,HWriteT|
|00000330| 72 65 65 0d 61 32 34 39 | 2c 49 44 32 48 6e 64 6c |ree.a249|,ID2Hndl|
|00000340| 0d 61 32 34 43 2c 49 6e | 69 74 43 6f 6e 74 65 6e |.a24C,In|itConten|
|00000350| 74 0d 61 32 36 44 2c 4e | 65 77 43 68 69 6c 64 0d |t.a26D,N|ewChild.|
|00000360| 61 32 41 44 2c 52 65 61 | 64 54 72 65 65 4f 62 6a |a2AD,Rea|dTreeObj|
|00000370| 44 61 74 61 0d 61 32 44 | 41 2c 55 6e 64 6f 46 69 |Data.a2D|A,UndoFi|
|00000380| 78 75 70 0d 61 32 45 42 | 2c 57 72 69 74 65 54 72 |xup.a2EB|,WriteTr|
|00000390| 65 65 4f 62 6a 44 61 74 | 61 0d 00 16 00 01 00 00 |eeObjDat|a.......|
|000003a0| 00 00 00 10 00 0c 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 06 00 00 00 00 | 44 c4 00 00 06 2e 00 00 |........|D.......|
|000003c0| 44 c4 00 00 00 00 00 00 | 75 30 02 6b 01 ff 00 00 |D.......|u0.k....|
|000003d0| 00 00 00 00 0f a8 00 00 | 00 00 4e 1f 00 00 00 09 |........|..N.....|
|000003e0| 00 00 00 04 00 04 ff fc | ff fa 00 04 00 04 ff fc |........|........|
|000003f0| ff fc 00 00 00 00 00 00 | 00 00 83 00 0b 40 0a 62 |........|.....@.b|
|00000400| 6f 64 79 2f 31 39 39 39 | 39 00 06 4d 6f 6e 61 63 |ody/1999|9..Monac|
|00000410| 6f 00 40 72 6c 6f 6e 67 | 20 44 6f 54 72 65 65 4f |o.@rlong| DoTreeO|
|00000420| 62 6a 4d 65 74 68 6f 64 | 28 54 72 65 65 4f 62 6a |bjMethod|(TreeObj|
|00000430| 48 6e 64 6c 20 68 6e 64 | 6c 2c 20 73 68 6f 72 74 |Hndl hnd|l, short|
|00000440| 20 6d 65 73 73 61 67 65 | 2c 20 6c 6f 6e 67 20 64 | message|, long d|
|00000450| 61 74 61 29 3b 0d 0d 42 | 65 6c 6f 77 20 69 73 20 |ata);..B|elow is |
|00000460| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 73 74 61 6e |the list| of stan|
|00000470| 64 61 72 64 20 6d 65 73 | 73 61 67 65 73 2c 20 66 |dard mes|sages, f|
|00000480| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 20 64 65 73 |ollowed |by a des|
|00000490| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 65 61 63 68 |cription| of each|
|000004a0| 20 61 6e 64 20 69 74 73 | 20 75 73 65 3a 0d 0d 23 | and its| use:..#|
|000004b0| 64 65 66 69 6e 65 20 49 | 4e 49 54 4d 45 53 53 41 |define I|NITMESSA|
|000004c0| 47 45 20 20 20 20 20 20 | 30 20 20 20 20 20 20 41 |GE |0 A|
|000004d0| 64 64 69 74 69 6f 6e 61 | 6c 20 6f 62 6a 65 63 74 |dditiona|l object|
|000004e0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 2e | initial|ization.|
|000004f0| 0d 23 64 65 66 69 6e 65 | 20 20 20 20 20 43 52 45 |.#define| CRE|
|00000500| 41 54 45 49 4e 49 54 20 | 20 20 20 20 20 20 30 20 |ATEINIT | 0 |
|00000510| 20 20 20 20 20 4f 62 6a | 65 63 74 20 62 65 69 6e | Obj|ect bein|
|00000520| 67 20 69 6e 69 74 69 61 | 6c 6c 79 20 63 72 65 61 |g initia|lly crea|
|00000530| 74 65 64 2e 0d 23 64 65 | 66 69 6e 65 20 20 20 20 |ted..#de|fine |
|00000540| 20 57 49 4e 44 4f 57 49 | 4e 49 54 20 20 20 20 20 | WINDOWI|NIT |
|00000550| 20 20 31 20 20 20 20 20 | 20 44 6f 63 75 6d 65 6e | 1 | Documen|
|00000560| 74 2f 6f 62 6a 65 63 74 | 20 62 65 69 6e 67 20 61 |t/object| being a|
|00000570| 73 73 69 67 6e 65 64 20 | 74 6f 20 61 20 77 69 6e |ssigned |to a win|
|00000580| 64 6f 77 2e 0d 23 64 65 | 66 69 6e 65 20 20 20 20 |dow..#de|fine |
|00000590| 20 4e 4f 57 49 4e 44 4f | 57 49 4e 49 54 20 20 20 | NOWINDO|WINIT |
|000005a0| 20 20 32 20 20 20 20 20 | 20 44 6f 63 75 6d 65 6e | 2 | Documen|
|000005b0| 74 2f 6f 62 6a 65 63 74 | 20 62 65 69 6e 67 20 66 |t/object| being f|
|000005c0| 72 65 65 64 20 66 72 6f | 6d 20 61 20 77 69 6e 64 |reed fro|m a wind|
|000005d0| 6f 77 2e 0d 0d 23 64 65 | 66 69 6e 65 20 46 52 45 |ow...#de|fine FRE|
|000005e0| 45 4d 45 53 53 41 47 45 | 20 20 20 20 20 20 31 20 |EMESSAGE| 1 |
|000005f0| 20 20 20 20 20 41 64 64 | 69 74 69 6f 6e 61 6c 20 | Add|itional |
|00000600| 6f 62 6a 65 63 74 20 64 | 69 73 70 6f 73 61 6c 2e |object d|isposal.|
|00000610| 0d 0d 23 64 65 66 69 6e | 65 20 43 4f 50 59 4d 45 |..#defin|e COPYME|
|00000620| 53 53 41 47 45 20 20 20 | 20 20 20 32 20 20 20 20 |SSAGE | 2 |
|00000630| 20 20 41 64 64 69 74 69 | 6f 6e 61 6c 20 6f 62 6a | Additi|onal obj|
|00000640| 65 63 74 20 63 6c 6f 6e | 69 6e 67 2e 0d 0d 23 64 |ect clon|ing...#d|
|00000650| 65 66 69 6e 65 20 55 4e | 44 4f 4d 45 53 53 41 47 |efine UN|DOMESSAG|
|00000660| 45 20 20 20 20 20 20 33 | 20 20 20 20 20 20 41 64 |E 3| Ad|
|00000670| 64 69 74 69 6f 6e 61 6c | 20 6f 62 6a 65 63 74 20 |ditional| object |
|00000680| 75 6e 64 6f 2e 0d 23 64 | 65 66 69 6e 65 20 20 20 |undo..#d|efine |
|00000690| 20 20 55 4e 44 4f 46 52 | 4f 4d 44 4f 43 20 20 20 | UNDOFR|OMDOC |
|000006a0| 20 20 20 30 20 20 20 20 | 20 20 4f 62 6a 65 63 74 | 0 | Object|
|000006b0| 20 6c 65 61 76 69 6e 67 | 20 64 6f 63 75 6d 65 6e | leaving| documen|
|000006c0| 74 2e 0d 23 64 65 66 69 | 6e 65 20 20 20 20 20 55 |t..#defi|ne U|
|000006d0| 4e 44 4f 54 4f 44 4f 43 | 20 20 20 20 20 20 20 20 |NDOTODOC| |
|000006e0| 31 20 20 20 20 20 20 4f | 62 6a 65 63 74 20 72 65 |1 O|bject re|
|000006f0| 74 75 72 6e 69 6e 67 20 | 74 6f 20 64 6f 63 75 6d |turning |to docum|
|00000700| 65 6e 74 2e 0d 0d 23 64 | 65 66 69 6e 65 20 43 4f |ent...#d|efine CO|
|00000710| 4e 56 45 52 54 4d 45 53 | 53 41 47 45 20 20 20 34 |NVERTMES|SAGE 4|
|00000720| 20 20 20 20 20 20 48 6e | 64 6c 32 49 44 20 6f 72 | Hn|dl2ID or|
|00000730| 20 49 44 32 48 6e 64 6c | 20 63 6f 6e 76 65 72 73 | ID2Hndl| convers|
|00000740| 69 6f 6e 73 2e 0d 23 64 | 65 66 69 6e 65 20 20 20 |ions..#d|efine |
|00000750| 20 20 43 4f 4e 56 45 52 | 54 54 4f 49 44 20 20 20 | CONVER|TTOID |
|00000760| 20 20 20 30 20 20 20 20 | 20 20 43 6f 6e 76 65 72 | 0 | Conver|
|00000770| 74 20 68 61 6e 64 6c 65 | 20 72 65 66 65 72 65 6e |t handle| referen|
|00000780| 63 65 73 20 74 6f 20 49 | 44 20 72 65 66 65 72 65 |ces to I|D refere|
|00000790| 6e 63 65 73 2e 0d 23 64 | 65 66 69 6e 65 20 20 20 |nces..#d|efine |
|000007a0| 20 20 43 4f 4e 56 45 52 | 54 54 4f 48 4e 44 4c 20 | CONVER|TTOHNDL |
|000007b0| 20 20 20 31 20 20 20 20 | 20 20 43 6f 6e 76 65 72 | 1 | Conver|
|000007c0| 74 20 49 44 20 72 65 66 | 65 72 65 6e 63 65 73 20 |t ID ref|erences |
|000007d0| 74 6f 20 68 61 6e 64 6c | 65 20 72 65 66 65 72 65 |to handl|e refere|
|000007e0| 6e 63 65 73 2e 0d 0d 23 | 64 65 66 69 6e 65 20 46 |nces...#|define F|
|000007f0| 52 45 41 44 4d 45 53 53 | 41 47 45 20 20 20 20 20 |READMESS|AGE |
|00000800| 35 20 20 20 20 20 20 52 | 65 61 64 20 6f 62 6a 65 |5 R|ead obje|
|00000810| 63 74 20 64 61 74 61 20 | 66 72 6f 6d 20 66 69 6c |ct data |from fil|
|00000820| 65 2e 0d 23 64 65 66 69 | 6e 65 20 46 57 52 49 54 |e..#defi|ne FWRIT|
|00000830| 45 4d 45 53 53 41 47 45 | 20 20 20 20 36 20 20 20 |EMESSAGE| 6 |
|00000840| 20 20 20 57 72 69 74 65 | 20 6f 62 6a 65 63 74 20 | Write| object |
|00000850| 64 61 74 61 20 74 6f 20 | 66 69 6c 65 2e 0d 0d 23 |data to |file...#|
|00000860| 64 65 66 69 6e 65 20 48 | 52 45 41 44 4d 45 53 53 |define H|READMESS|
|00000870| 41 47 45 20 20 20 20 20 | 37 20 20 20 20 20 20 52 |AGE |7 R|
|00000880| 65 61 64 20 6f 62 6a 65 | 63 74 20 64 61 74 61 20 |ead obje|ct data |
|00000890| 66 72 6f 6d 20 68 61 6e | 64 6c 65 2e 0d 23 64 65 |from han|dle..#de|
|000008a0| 66 69 6e 65 20 48 57 52 | 49 54 45 4d 45 53 53 41 |fine HWR|ITEMESSA|
|000008b0| 47 45 20 20 20 20 38 20 | 20 20 20 20 20 57 72 69 |GE 8 | Wri|
|000008c0| 74 65 20 6f 62 6a 65 63 | 74 20 64 61 74 61 20 74 |te objec|t data t|
|000008d0| 6f 20 68 61 6e 64 6c 65 | 2e 0d 0d 23 64 65 66 69 |o handle|...#defi|
|000008e0| 6e 65 20 48 49 54 54 45 | 53 54 4d 45 53 53 41 47 |ne HITTE|STMESSAG|
|000008f0| 45 20 20 20 39 20 20 20 | 20 20 20 54 65 73 74 20 |E 9 | Test |
|00000900| 69 66 20 6f 62 6a 65 63 | 74 20 77 61 73 20 68 69 |if objec|t was hi|
|00000910| 74 2e 0d 23 64 65 66 69 | 6e 65 20 20 20 20 20 48 |t..#defi|ne H|
|00000920| 49 54 54 45 53 54 4f 42 | 4a 20 20 20 20 20 20 20 |ITTESTOB|J |
|00000930| 30 20 20 20 20 20 20 54 | 65 73 74 20 62 6f 64 79 |0 T|est body|
|00000940| 20 6f 66 20 6f 62 6a 65 | 63 74 20 66 6f 72 20 68 | of obje|ct for h|
|00000950| 69 74 2e 0d 23 64 65 66 | 69 6e 65 20 20 20 20 20 |it..#def|ine |
|00000960| 48 49 54 54 45 53 54 47 | 52 41 42 42 45 52 20 20 |HITTESTG|RABBER |
|00000970| 20 31 20 20 20 20 20 20 | 54 65 73 74 20 73 69 7a | 1 |Test siz|
|00000980| 69 6e 67 20 70 61 72 74 | 73 20 66 6f 72 20 68 69 |ing part|s for hi|
|00000990| 74 2e 0d 23 64 65 66 69 | 6e 65 20 20 20 20 20 43 |t..#defi|ne C|
|000009a0| 41 4e 42 45 54 41 52 47 | 45 54 20 20 20 20 20 20 |ANBETARG|ET |
|000009b0| 32 20 20 20 20 20 20 52 | 65 74 75 72 6e 20 74 72 |2 R|eturn tr|
|000009c0| 75 65 20 69 66 20 6f 62 | 6a 65 63 74 20 63 61 6e |ue if ob|ject can|
|000009d0| 20 62 65 63 6f 6d 65 20 | 74 61 72 67 65 74 2e 0d | become |target..|
|000009e0| 23 64 65 66 69 6e 65 20 | 20 20 20 20 43 41 4e 54 |#define | CANT|
|000009f0| 41 4b 45 4b 45 59 53 20 | 20 20 20 20 20 33 20 20 |AKEKEYS | 3 |
|00000a00| 20 20 20 20 52 65 74 75 | 72 6e 20 74 72 75 65 20 | Retu|rn true |
|00000a10| 69 66 20 74 61 72 67 65 | 74 20 63 61 6e 20 74 61 |if targe|t can ta|
|00000a20| 6b 65 20 6b 65 79 73 2e | 0d 0d 23 64 65 66 69 6e |ke keys.|..#defin|
|00000a30| 65 20 47 45 54 52 47 4e | 4d 45 53 53 41 47 45 20 |e GETRGN|MESSAGE |
|00000a40| 20 20 20 31 30 20 20 20 | 20 20 52 65 74 75 72 6e | 10 | Return|
|00000a50| 20 6f 62 6a 65 63 74 20 | 62 6f 75 6e 64 69 6e 67 | object |bounding|
|00000a60| 20 62 6f 78 2e 0d 23 64 | 65 66 69 6e 65 20 47 45 | box..#d|efine GE|
|00000a70| 54 42 42 4f 58 4d 45 53 | 53 41 47 45 20 20 20 31 |TBBOXMES|SAGE 1|
|00000a80| 31 20 20 20 20 20 52 65 | 74 75 72 6e 20 6f 62 6a |1 Re|turn obj|
|00000a90| 65 63 74 20 62 6f 75 6e | 64 69 6e 67 20 62 6f 78 |ect boun|ding box|
|00000aa0| 2e 0d 23 64 65 66 69 6e | 65 20 53 45 54 42 42 4f |..#defin|e SETBBO|
|00000ab0| 58 4d 45 53 53 41 47 45 | 20 20 20 31 32 20 20 20 |XMESSAGE| 12 |
|00000ac0| 20 20 53 65 74 20 6f 62 | 6a 65 63 74 20 62 6f 75 | Set ob|ject bou|
|00000ad0| 6e 64 69 6e 67 20 62 6f | 78 2e 0d 23 64 65 66 69 |nding bo|x..#defi|
|00000ae0| 6e 65 20 53 45 43 54 42 | 42 4f 58 4d 45 53 53 41 |ne SECTB|BOXMESSA|
|00000af0| 47 45 20 20 31 33 20 20 | 20 20 20 43 68 65 63 6b |GE 13 | Check|
|00000b00| 20 69 66 20 72 65 63 74 | 20 69 6e 74 65 72 73 65 | if rect| interse|
|00000b10| 63 74 73 20 6f 62 6a 65 | 63 74 20 62 6f 75 6e 64 |cts obje|ct bound|
|00000b20| 69 6e 67 20 62 6f 78 2e | 0d 0d 23 64 65 66 69 6e |ing box.|..#defin|
|00000b30| 65 20 54 41 52 47 45 54 | 4d 45 53 53 41 47 45 20 |e TARGET|MESSAGE |
|00000b40| 20 20 20 31 34 20 20 20 | 20 20 53 65 74 20 74 61 | 14 | Set ta|
|00000b50| 72 67 65 74 20 73 74 61 | 74 75 73 20 66 6f 72 20 |rget sta|tus for |
|00000b60| 6f 62 6a 65 63 74 2e 0d | 23 64 65 66 69 6e 65 20 |object..|#define |
|00000b70| 20 20 20 20 54 41 52 47 | 45 54 4f 46 46 20 20 20 | TARG|ETOFF |
|00000b80| 20 20 20 20 20 30 20 20 | 20 20 20 20 4d 61 6b 65 | 0 | Make|
|00000b90| 20 74 68 65 20 6f 62 6a | 65 63 74 20 6e 6f 20 6c | the obj|ect no l|
|00000ba0| 6f 6e 67 65 72 20 74 68 | 65 20 74 61 72 67 65 74 |onger th|e target|
|00000bb0| 2e 0d 23 64 65 66 69 6e | 65 20 20 20 20 20 54 41 |..#defin|e TA|
|00000bc0| 52 47 45 54 4f 4e 20 20 | 20 20 20 20 20 20 20 31 |RGETON | 1|
|00000bd0| 20 20 20 20 20 20 4d 61 | 6b 65 20 74 68 65 20 6f | Ma|ke the o|
|00000be0| 62 6a 65 63 74 20 74 68 | 65 20 74 61 72 67 65 74 |bject th|e target|
|00000bf0| 2e 0d 0d 23 64 65 66 69 | 6e 65 20 44 52 41 57 4d |...#defi|ne DRAWM|
|00000c00| 45 53 53 41 47 45 20 20 | 20 20 20 20 31 35 20 20 |ESSAGE | 15 |
|00000c10| 20 20 20 44 72 61 77 20 | 73 6f 6d 65 20 66 6f 72 | Draw |some for|
|00000c20| 6d 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 2e |m of the| object.|
|00000c30| 0d 23 64 65 66 69 6e 65 | 20 20 20 20 20 44 52 41 |.#define| DRA|
|00000c40| 57 4f 42 4a 20 20 20 20 | 20 20 20 20 20 20 30 20 |WOBJ | 0 |
|00000c50| 20 20 20 20 20 44 72 61 | 77 20 74 68 65 20 6f 62 | Dra|w the ob|
|00000c60| 6a 65 63 74 2e 0d 23 64 | 65 66 69 6e 65 20 20 20 |ject..#d|efine |
|00000c70| 20 20 45 52 41 53 45 4f | 42 4a 20 20 20 20 20 20 | ERASEO|BJ |
|00000c80| 20 20 20 31 20 20 20 20 | 20 20 44 72 61 77 20 74 | 1 | Draw t|
|00000c90| 68 65 20 6f 62 6a 65 63 | 74 2e 0d 23 64 65 66 69 |he objec|t..#defi|
|00000ca0| 6e 65 20 20 20 20 20 44 | 52 41 57 53 45 4c 45 43 |ne D|RAWSELEC|
|00000cb0| 54 20 20 20 20 20 20 20 | 32 20 20 20 20 20 20 44 |T |2 D|
|00000cc0| 72 61 77 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |raw the |selectio|
|00000cd0| 6e 20 70 6f 72 74 69 6f | 6e 20 6f 66 20 74 68 65 |n portio|n of the|
|00000ce0| 20 6f 62 6a 65 63 74 2e | 0d 23 64 65 66 69 6e 65 | object.|.#define|
|00000cf0| 20 20 20 20 20 44 52 41 | 57 47 48 4f 53 54 20 20 | DRA|WGHOST |
|00000d00| 20 20 20 20 20 20 33 20 | 20 20 20 20 20 44 72 61 | 3 | Dra|
|00000d10| 77 20 61 6e 20 78 6f 72 | 2d 67 68 6f 73 74 20 28 |w an xor|-ghost (|
|00000d20| 66 6f 72 20 64 72 61 67 | 67 69 6e 67 29 20 6f 66 |for drag|ging) of|
|00000d30| 20 74 68 65 20 69 6d 61 | 67 65 2e 0d 23 64 65 66 | the ima|ge..#def|
|00000d40| 69 6e 65 20 20 20 20 20 | 44 52 41 57 4d 41 53 4b |ine |DRAWMASK|
|00000d50| 20 20 20 20 20 20 20 20 | 20 34 20 20 20 20 20 20 | | 4 |
|00000d60| 44 72 61 77 20 61 20 6d | 61 73 6b 20 6f 66 20 74 |Draw a m|ask of t|
|00000d70| 68 65 20 69 6d 61 67 65 | 20 28 66 6f 72 20 6f 66 |he image| (for of|
|00000d80| 66 73 63 72 65 65 6e 20 | 6c 61 79 65 72 20 6d 61 |fscreen |layer ma|
|00000d90| 73 6b 69 6e 67 2e 29 0d | 0d 23 64 65 66 69 6e 65 |sking.).|.#define|
|00000da0| 20 50 52 49 4e 54 4d 45 | 53 53 41 47 45 20 20 20 | PRINTME|SSAGE |
|00000db0| 20 20 31 36 20 20 20 20 | 20 50 72 69 6e 74 20 74 | 16 | Print t|
|00000dc0| 68 65 20 6f 62 6a 65 63 | 74 2e 0d 0d 23 64 65 66 |he objec|t...#def|
|00000dd0| 69 6e 65 20 56 48 4d 45 | 53 53 41 47 45 20 20 20 |ine VHME|SSAGE |
|00000de0| 20 20 20 20 20 31 37 20 | 20 20 20 20 46 6f 72 6d | 17 | Form|
|00000df0| 61 74 20 56 69 65 77 20 | 48 69 65 72 61 72 63 68 |at View |Hierarch|
|00000e00| 79 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |y inform|ation fo|
|00000e10| 72 20 74 68 65 20 6f 62 | 6a 65 63 74 2e 0d 0d 0d |r the ob|ject....|
|00000e20| 49 4e 49 54 4d 45 53 53 | 41 47 45 3a 20 20 54 68 |INITMESS|AGE: Th|
|00000e30| 69 73 20 69 73 20 63 61 | 6c 6c 65 64 20 77 69 74 |is is ca|lled wit|
|00000e40| 68 20 61 20 73 75 62 2d | 6d 65 73 73 61 67 65 20 |h a sub-|message |
|00000e50| 6f 66 20 77 68 61 74 20 | 6b 69 6e 64 20 6f 66 20 |of what |kind of |
|00000e60| 69 6e 69 74 20 69 74 20 | 69 73 2e 20 20 54 68 65 |init it |is. The|
|00000e70| 20 43 52 45 41 54 45 49 | 4e 49 54 0d 73 75 62 2d | CREATEI|NIT.sub-|
|00000e80| 6d 65 73 73 61 67 65 20 | 20 69 6e 64 69 63 61 74 |message | indicat|
|00000e90| 65 73 20 74 68 61 74 20 | 74 68 65 20 6f 62 6a 65 |es that |the obje|
|00000ea0| 63 74 20 69 73 20 69 6e | 69 74 69 61 6c 6c 79 20 |ct is in|itially |
|00000eb0| 62 65 69 6e 67 20 63 72 | 65 61 74 65 64 2e 20 20 |being cr|eated. |
|00000ec0| 54 68 69 73 20 73 75 62 | 2d 6d 65 73 73 61 67 65 |This sub|-message|
|00000ed0| 20 69 73 20 69 6e 0d 63 | 61 73 65 20 74 68 65 72 | is in.c|ase ther|
|00000ee0| 65 20 69 73 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |e is add|itional |
|00000ef0| 64 61 74 61 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |data ini|tializat|
|00000f00| 69 6f 6e 20 74 68 61 74 | 20 6d 75 73 74 20 6f 63 |ion that| must oc|
|00000f10| 63 75 72 2e 20 20 44 65 | 70 65 6e 64 69 6e 67 20 |cur. De|pending |
|00000f20| 6f 6e 20 74 68 65 20 6f | 62 6a 65 63 74 2c 20 74 |on the o|bject, t|
|00000f30| 68 65 72 65 0d 6d 61 79 | 20 62 65 20 68 61 6e 64 |here.may| be hand|
|00000f40| 6c 65 73 20 74 68 61 74 | 20 6e 65 65 64 20 74 6f |les that| need to|
|00000f50| 20 62 65 20 63 72 65 61 | 74 65 64 20 6f 66 66 20 | be crea|ted off |
|00000f60| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 74 73 65 6c |the obje|ct itsel|
|00000f70| 66 2e 20 20 49 74 20 6d | 61 79 20 6e 6f 74 20 62 |f. It m|ay not b|
|00000f80| 65 20 61 20 73 69 6d 70 | 6c 65 20 6c 69 6e 65 61 |e a simp|le linea|
|00000f90| 72 0d 62 6c 6f 63 6b 20 | 6f 66 20 64 61 74 61 2e |r.block |of data.|
|00000fa0| 20 20 49 6e 20 74 68 65 | 73 65 20 63 61 73 65 73 | In the|se cases|
|00000fb0| 2c 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 64 6f |, you wa|nt to do|
|00000fc0| 20 74 68 69 73 20 61 64 | 64 69 74 69 6f 6e 61 6c | this ad|ditional|
|00000fd0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00000fe0| 77 68 65 6e 20 74 68 65 | 0d 49 4e 49 54 4d 45 53 |when the|.INITMES|
|00000ff0| 53 41 47 45 20 69 73 20 | 72 65 63 65 69 76 65 64 |SAGE is |received|
|00001000| 2e 0d 54 68 65 20 57 49 | 4e 44 4f 57 49 4e 49 54 |..The WI|NDOWINIT|
|00001010| 20 73 75 62 2d 6d 65 73 | 73 61 67 65 20 69 73 20 | sub-mes|sage is |
|00001020| 69 6e 20 63 61 73 65 20 | 63 65 72 74 61 69 6e 20 |in case |certain |
|00001030| 6f 62 6a 65 63 74 73 20 | 68 61 76 65 20 61 20 64 |objects |have a d|
|00001040| 69 66 66 65 72 65 6e 74 | 20 73 74 61 74 65 20 77 |ifferent| state w|
|00001050| 68 65 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |hen the |document|
|00001060| 0d 68 61 73 20 61 20 77 | 69 6e 64 6f 77 20 74 68 |.has a w|indow th|
|00001070| 61 6e 20 77 68 65 6e 20 | 69 74 20 64 6f 65 73 6e |an when |it doesn|
|00001080| 27 74 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |'t. For| example|
|00001090| 3a 20 20 49 66 20 74 68 | 65 72 65 20 77 65 72 65 |: If th|ere were|
|000010a0| 20 61 20 54 65 78 74 45 | 64 69 74 20 6f 62 6a 65 | a TextE|dit obje|
|000010b0| 63 74 2c 20 74 68 65 6e | 20 77 68 65 6e 0d 74 68 |ct, then| when.th|
|000010c0| 65 20 66 69 6c 65 20 69 | 73 20 69 6e 69 74 69 61 |e file i|s initia|
|000010d0| 6c 6c 79 20 72 65 61 64 | 20 69 6e 20 61 6e 64 20 |lly read| in and |
|000010e0| 74 68 65 20 43 52 45 41 | 54 45 49 4e 49 54 20 73 |the CREA|TEINIT s|
|000010f0| 75 62 2d 6d 65 73 73 61 | 67 65 20 69 73 20 70 61 |ub-messa|ge is pa|
|00001100| 73 73 65 64 20 74 6f 20 | 74 68 65 20 6f 62 6a 65 |ssed to |the obje|
|00001110| 63 74 2c 20 74 68 65 72 | 65 20 69 73 0d 6e 6f 20 |ct, ther|e is.no |
|00001120| 77 69 6e 64 6f 77 20 74 | 6f 20 70 61 73 73 20 74 |window t|o pass t|
|00001130| 6f 20 54 45 4e 65 77 20 | 74 6f 20 63 72 65 61 74 |o TENew |to creat|
|00001140| 65 20 61 20 6e 65 77 20 | 54 65 78 74 45 64 69 74 |e a new |TextEdit|
|00001150| 20 72 65 63 6f 72 64 2e | 20 20 54 68 65 20 64 61 | record.| The da|
|00001160| 74 61 20 68 61 73 20 74 | 6f 20 62 65 20 72 65 61 |ta has t|o be rea|
|00001170| 64 20 69 6e 20 61 73 0d | 72 65 67 75 6c 61 72 20 |d in as.|regular |
|00001180| 74 65 78 74 20 74 68 61 | 74 20 68 61 73 20 6e 6f |text tha|t has no|
|00001190| 20 54 45 52 65 63 6f 72 | 64 20 79 65 74 2e 20 20 | TERecor|d yet. |
|000011a0| 4f 6e 63 65 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |Once the| documen|
|000011b0| 74 20 69 73 20 61 73 73 | 69 67 6e 65 64 20 61 20 |t is ass|igned a |
|000011c0| 77 69 6e 64 6f 77 2c 20 | 61 20 54 45 52 65 63 6f |window, |a TEReco|
|000011d0| 72 64 20 63 61 6e 0d 62 | 65 20 63 72 65 61 74 65 |rd can.b|e create|
|000011e0| 64 20 66 6f 72 20 74 68 | 65 20 6f 62 6a 65 63 74 |d for th|e object|
|000011f0| 20 61 6e 64 20 74 68 65 | 20 74 65 78 74 20 64 61 | and the| text da|
|00001200| 74 61 20 63 61 6e 20 62 | 65 20 6d 6f 76 65 64 20 |ta can b|e moved |
|00001210| 69 6e 74 6f 20 74 68 65 | 20 54 45 52 65 63 6f 72 |into the| TERecor|
|00001220| 64 2e 20 20 54 68 69 73 | 20 61 64 64 69 74 69 6f |d. This| additio|
|00001230| 6e 61 6c 0d 57 49 4e 44 | 4f 57 49 4e 49 54 20 73 |nal.WIND|OWINIT s|
|00001240| 75 62 2d 6d 65 73 73 61 | 67 65 20 69 73 20 64 65 |ub-messa|ge is de|
|00001250| 66 69 6e 65 64 20 66 6f | 72 20 6a 75 73 74 20 73 |fined fo|r just s|
|00001260| 75 63 68 20 6f 62 6a 65 | 63 74 73 20 74 68 61 74 |uch obje|cts that|
|00001270| 20 79 6f 75 20 6d 61 79 | 20 63 72 65 61 74 65 2e | you may| create.|
|00001280| 20 20 4e 6f 74 65 20 74 | 68 61 74 0d 6e 6f 77 68 | Note t|hat.nowh|
|00001290| 65 72 65 20 69 6e 20 74 | 68 65 20 61 70 70 6c 69 |ere in t|he appli|
|000012a0| 63 61 74 69 6f 6e 20 66 | 72 61 6d 65 77 6f 72 6b |cation f|ramework|
|000012b0| 20 69 73 20 74 68 65 72 | 65 20 61 20 63 61 6c 6c | is ther|e a call|
|000012c0| 20 74 68 61 74 20 70 61 | 73 73 65 73 20 61 20 57 | that pa|sses a W|
|000012d0| 49 4e 44 4f 57 49 4e 49 | 54 20 73 75 62 2d 6d 65 |INDOWINI|T sub-me|
|000012e0| 73 73 61 67 65 2e 0d 54 | 68 69 73 20 77 6f 75 6c |ssage..T|his woul|
|000012f0| 64 20 62 65 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |d be an |applicat|
|00001300| 69 6f 6e 2d 73 70 65 63 | 69 66 69 63 20 66 75 6e |ion-spec|ific fun|
|00001310| 63 74 69 6f 6e 2c 20 61 | 6e 64 20 74 68 65 72 65 |ction, a|nd there|
|00001320| 66 6f 72 65 20 74 68 69 | 73 20 63 61 6c 6c 20 77 |fore thi|s call w|
|00001330| 6f 75 6c 64 20 62 65 6c | 6f 6e 67 20 69 6e 20 74 |ould bel|ong in t|
|00001340| 68 65 0d 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |he.appli|cation. |
|00001350| 20 54 68 65 20 6d 6f 73 | 74 20 6c 69 6b 65 6c 79 | The mos|t likely|
|00001360| 20 70 6c 61 63 65 20 66 | 6f 72 20 74 68 69 73 20 | place f|or this |
|00001370| 77 6f 75 6c 64 20 62 65 | 20 69 6e 20 74 68 65 20 |would be| in the |
|00001380| 49 6e 69 74 43 6f 6e 74 | 65 6e 74 20 66 75 6e 63 |InitCont|ent func|
|00001390| 74 69 6f 6e 20 66 6f 72 | 20 74 68 65 0d 61 70 70 |tion for| the.app|
|000013a0| 6c 69 63 61 74 69 6f 6e | 2e 20 20 59 6f 75 20 77 |lication|. You w|
|000013b0| 6f 75 6c 64 20 64 6f 20 | 73 6f 6d 65 74 68 69 6e |ould do |somethin|
|000013c0| 67 20 6c 69 6b 65 20 74 | 68 65 20 66 6f 6c 6c 6f |g like t|he follo|
|000013d0| 77 69 6e 67 3a 0d 20 20 | 20 20 44 6f 46 54 72 65 |wing:. | DoFTre|
|000013e0| 65 4d 65 74 68 6f 64 28 | 72 6f 6f 74 2c 20 49 4e |eMethod(|root, IN|
|000013f0| 49 54 4d 45 53 53 41 47 | 45 2c 20 57 49 4e 44 4f |ITMESSAG|E, WINDO|
|00001400| 57 49 4e 49 54 29 3b 0d | 54 68 69 73 20 77 6f 75 |WINIT);.|This wou|
|00001410| 6c 64 20 70 61 73 73 20 | 65 61 63 68 20 6f 62 6a |ld pass |each obj|
|00001420| 65 63 74 20 69 6e 20 74 | 68 65 20 64 6f 63 75 6d |ect in t|he docum|
|00001430| 65 6e 74 20 61 6e 20 49 | 4e 49 54 4d 45 53 53 41 |ent an I|NITMESSA|
|00001440| 47 45 20 77 69 74 68 20 | 61 20 73 75 62 2d 6d 65 |GE with |a sub-me|
|00001450| 73 73 61 67 65 20 6f 66 | 20 57 49 4e 44 4f 57 49 |ssage of| WINDOWI|
|00001460| 4e 49 54 2e 0d 54 68 65 | 20 66 69 6e 61 6c 20 73 |NIT..The| final s|
|00001470| 75 62 2d 6d 65 73 73 61 | 67 65 20 69 73 20 4e 4f |ub-messa|ge is NO|
|00001480| 57 49 4e 44 4f 57 49 4e | 49 54 2e 20 20 54 68 69 |WINDOWIN|IT. Thi|
|00001490| 73 20 6d 65 73 73 61 67 | 65 20 6f 63 63 75 72 73 |s messag|e occurs|
|000014a0| 20 77 68 65 6e 20 61 20 | 64 6f 63 75 6d 65 6e 74 | when a |document|
|000014b0| 20 69 73 20 62 65 69 6e | 67 20 64 65 74 61 63 68 | is bein|g detach|
|000014c0| 65 64 0d 66 72 6f 6d 20 | 61 20 77 69 6e 64 6f 77 |ed.from |a window|
|000014d0| 2e 20 20 49 66 20 61 6e | 20 6f 62 6a 65 63 74 20 |. If an| object |
|000014e0| 68 61 73 20 74 6f 20 63 | 68 61 6e 67 65 20 73 74 |has to c|hange st|
|000014f0| 61 74 65 20 74 6f 20 61 | 63 63 6f 6d 6f 64 61 74 |ate to a|ccomodat|
|00001500| 65 20 62 65 69 6e 67 20 | 72 65 6c 61 74 65 64 20 |e being |related |
|00001510| 74 6f 20 61 20 77 69 6e | 64 6f 77 2c 20 74 68 65 |to a win|dow, the|
|00001520| 6e 0d 69 74 20 77 6f 75 | 6c 64 20 6e 65 65 64 20 |n.it wou|ld need |
|00001530| 74 6f 20 63 68 61 6e 67 | 65 20 73 74 61 74 65 20 |to chang|e state |
|00001540| 62 61 63 6b 20 77 68 65 | 6e 20 64 69 73 61 73 73 |back whe|n disass|
|00001550| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 61 |ociated |with tha|
|00001560| 74 20 77 69 6e 64 6f 77 | 2e 0d 0d 46 52 45 45 4d |t window|...FREEM|
|00001570| 45 53 53 41 47 45 3a 20 | 20 54 68 69 73 20 69 73 |ESSAGE: | This is|
|00001580| 20 63 61 6c 6c 65 64 20 | 64 75 65 20 74 6f 20 44 | called |due to D|
|00001590| 69 73 70 6f 73 65 43 68 | 69 6c 64 20 62 65 69 6e |isposeCh|ild bein|
|000015a0| 67 20 63 61 6c 6c 65 64 | 2e 20 20 44 69 73 70 6f |g called|. Dispo|
|000015b0| 73 65 43 68 69 6c 64 20 | 77 69 6c 6c 0d 64 69 73 |seChild |will.dis|
|000015c0| 70 6f 73 65 20 6f 66 20 | 73 69 6d 70 6c 65 20 6f |pose of |simple o|
|000015d0| 62 6a 65 63 74 73 20 74 | 68 61 74 20 64 6f 6e 27 |bjects t|hat don'|
|000015e0| 74 20 68 61 76 65 20 61 | 64 64 69 74 69 6f 6e 61 |t have a|dditiona|
|000015f0| 6c 20 68 61 6e 64 6c 65 | 73 20 6f 66 20 64 61 74 |l handle|s of dat|
|00001600| 61 2e 20 20 41 6e 79 20 | 68 61 6e 64 6c 65 73 20 |a. Any |handles |
|00001610| 74 68 61 74 20 77 65 72 | 65 0d 63 72 65 61 74 65 |that wer|e.create|
|00001620| 64 20 61 74 20 49 4e 49 | 54 4d 45 53 53 41 47 45 |d at INI|TMESSAGE|
|00001630| 20 74 69 6d 65 20 73 68 | 6f 75 6c 64 20 62 65 20 | time sh|ould be |
|00001640| 64 69 73 70 6f 73 65 64 | 20 6f 66 20 77 68 65 6e |disposed| of when|
|00001650| 20 74 68 65 20 46 52 45 | 45 4d 45 53 53 41 47 45 | the FRE|EMESSAGE|
|00001660| 20 69 73 20 72 65 63 65 | 69 76 65 64 2e 0d 0d 43 | is rece|ived...C|
|00001670| 4f 50 59 4d 45 53 53 41 | 47 45 3a 20 20 57 68 65 |OPYMESSA|GE: Whe|
|00001680| 6e 20 43 6f 70 79 43 68 | 69 6c 64 20 69 73 20 63 |n CopyCh|ild is c|
|00001690| 61 6c 6c 65 64 2c 20 61 | 20 6e 65 77 20 63 68 69 |alled, a| new chi|
|000016a0| 6c 64 20 69 73 20 63 72 | 65 61 74 65 64 20 76 69 |ld is cr|eated vi|
|000016b0| 61 20 63 61 6c 6c 69 6e | 67 20 4e 65 77 43 68 69 |a callin|g NewChi|
|000016c0| 6c 64 2e 0d 4e 6f 72 6d | 61 6c 6c 79 20 77 68 65 |ld..Norm|ally whe|
|000016d0| 6e 20 4e 65 77 43 68 69 | 6c 64 20 69 73 20 63 61 |n NewChi|ld is ca|
|000016e0| 6c 6c 65 64 2c 20 74 68 | 65 20 6f 62 6a 65 63 74 |lled, th|e object|
|000016f0| 20 69 73 20 63 61 6c 6c | 65 64 20 77 69 74 68 20 | is call|ed with |
|00001700| 49 4e 49 54 4d 45 53 53 | 41 47 45 2e 20 20 48 6f |INITMESS|AGE. Ho|
|00001710| 77 65 76 65 72 2c 0d 77 | 68 65 6e 20 61 20 63 68 |wever,.w|hen a ch|
|00001720| 69 6c 64 20 69 73 20 62 | 65 69 6e 67 20 63 6f 70 |ild is b|eing cop|
|00001730| 69 65 64 2c 20 74 68 65 | 20 64 61 74 61 20 61 72 |ied, the| data ar|
|00001740| 65 61 20 69 73 20 63 6f | 70 69 65 64 20 69 6e 74 |ea is co|pied int|
|00001750| 6f 20 74 68 65 20 63 6f | 70 79 20 63 68 69 6c 64 |o the co|py child|
|00001760| 2e 20 20 54 68 69 73 20 | 64 61 74 61 0d 63 6f 70 |. This |data.cop|
|00001770| 79 20 77 6f 75 6c 64 20 | 63 6c 6f 62 62 65 72 20 |y would |clobber |
|00001780| 61 6e 79 20 68 61 6e 64 | 6c 65 20 72 65 66 65 72 |any hand|le refer|
|00001790| 65 6e 63 65 73 20 74 68 | 65 20 6e 65 77 6c 79 20 |ences th|e newly |
|000017a0| 63 72 65 61 74 65 64 20 | 63 6f 70 79 20 77 6f 75 |created |copy wou|
|000017b0| 6c 64 20 68 61 76 65 2c | 20 74 68 75 73 20 6f 72 |ld have,| thus or|
|000017c0| 70 68 61 6e 69 6e 67 0d | 74 68 6f 73 65 20 68 61 |phaning.|those ha|
|000017d0| 6e 64 6c 65 73 2e 20 20 | 46 6f 72 20 74 68 69 73 |ndles. |For this|
|000017e0| 20 72 65 61 73 6f 6e 2c | 20 6e 6f 20 49 4e 49 54 | reason,| no INIT|
|000017f0| 4d 45 53 53 41 47 45 20 | 77 61 73 20 70 61 73 73 |MESSAGE |was pass|
|00001800| 65 64 20 74 6f 20 74 68 | 65 20 6f 62 6a 65 63 74 |ed to th|e object|
|00001810| 20 62 79 20 4e 65 77 43 | 68 69 6c 64 2e 0d 54 68 | by NewC|hild..Th|
|00001820| 65 20 64 61 74 61 20 77 | 61 73 20 63 6f 70 69 65 |e data w|as copie|
|00001830| 64 20 69 6e 74 6f 20 74 | 68 65 20 63 6f 70 79 20 |d into t|he copy |
|00001840| 68 6f 77 65 76 65 72 2c | 20 73 6f 20 61 6e 79 20 |however,| so any |
|00001850| 68 61 6e 64 6c 65 20 72 | 65 66 65 72 65 6e 63 65 |handle r|eference|
|00001860| 73 20 69 6e 20 74 68 65 | 20 63 6f 70 79 20 61 72 |s in the| copy ar|
|00001870| 65 6e 27 74 20 75 6e 69 | 71 75 65 0d 72 65 66 65 |en't uni|que.refe|
|00001880| 72 65 6e 63 65 73 2e 20 | 20 54 68 65 20 6f 72 69 |rences. | The ori|
|00001890| 67 69 6e 61 6c 20 63 68 | 69 6c 64 20 68 61 73 20 |ginal ch|ild has |
|000018a0| 74 68 65 20 73 61 6d 65 | 20 72 65 66 65 72 65 6e |the same| referen|
|000018b0| 63 65 73 2e 20 20 54 68 | 69 73 20 69 73 6e 27 74 |ces. Th|is isn't|
|000018c0| 20 61 20 67 6f 6f 64 20 | 73 69 74 75 61 74 69 6f | a good |situatio|
|000018d0| 6e 2e 0d 54 68 65 20 66 | 69 72 73 74 20 74 68 69 |n..The f|irst thi|
|000018e0| 6e 67 20 74 68 61 74 20 | 74 68 65 20 63 6f 64 65 |ng that |the code|
|000018f0| 20 66 6f 72 20 74 68 65 | 20 43 4f 50 59 4d 45 53 | for the| COPYMES|
|00001900| 53 41 47 45 20 6e 65 65 | 64 73 20 74 6f 20 64 6f |SAGE nee|ds to do|
|00001910| 20 69 73 20 74 6f 20 73 | 65 6e 64 20 69 74 73 65 | is to s|end itse|
|00001920| 6c 66 20 61 6e 0d 49 4e | 49 54 4d 45 53 53 41 47 |lf an.IN|ITMESSAG|
|00001930| 45 20 73 6f 20 74 68 61 | 74 20 75 6e 69 71 75 65 |E so tha|t unique|
|00001940| 20 68 61 6e 64 6c 65 73 | 20 66 6f 72 20 74 68 65 | handles| for the|
|00001950| 20 63 6f 70 79 20 61 72 | 65 20 63 72 65 61 74 65 | copy ar|e create|
|00001960| 64 2e 20 20 4f 6e 63 65 | 20 74 68 69 73 20 69 73 |d. Once| this is|
|00001970| 20 64 6f 6e 65 2c 20 74 | 68 65 6e 0d 74 68 65 20 | done, t|hen.the |
|00001980| 63 6f 64 65 20 66 6f 72 | 20 43 4f 50 59 4d 45 53 |code for| COPYMES|
|00001990| 53 41 47 45 20 63 61 6e | 20 61 63 74 75 61 6c 6c |SAGE can| actuall|
|000019a0| 79 20 63 6f 70 79 20 74 | 68 65 20 64 61 74 61 20 |y copy t|he data |
|000019b0| 69 6e 20 74 68 65 73 65 | 20 68 61 6e 64 6c 65 73 |in these| handles|
|000019c0| 2e 20 20 4f 6e 63 65 20 | 74 68 69 73 20 66 69 6e |. Once |this fin|
|000019d0| 61 6c 0d 63 6f 70 79 69 | 6e 67 20 69 73 20 64 6f |al.copyi|ng is do|
|000019e0| 6e 65 2c 20 77 65 20 68 | 61 76 65 20 61 20 63 6f |ne, we h|ave a co|
|000019f0| 6d 70 6c 65 74 65 20 61 | 6e 64 20 73 65 70 61 72 |mplete a|nd separ|
|00001a00| 61 74 65 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |ate copy| of the |
|00001a10| 6f 72 69 67 69 6e 61 6c | 20 63 68 69 6c 64 2e 0d |original| child..|
|00001a20| 0d 55 4e 44 4f 4d 45 53 | 53 41 47 45 3a 20 20 57 |.UNDOMES|SAGE: W|
|00001a30| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 70 65 72 |hen the |user per|
|00001a40| 66 6f 72 6d 73 20 61 6e | 20 75 6e 64 6f 20 6f 72 |forms an| undo or|
|00001a50| 20 72 65 64 6f 2c 20 69 | 6e 76 6f 6c 76 65 64 20 | redo, i|nvolved |
|00001a60| 6f 62 6a 65 63 74 73 20 | 67 65 74 20 70 61 73 73 |objects |get pass|
|00001a70| 65 64 0d 74 68 69 73 20 | 6d 65 73 73 61 67 65 2e |ed.this |message.|
|00001a80| 20 20 57 68 65 6e 20 61 | 6e 20 75 6e 64 6f 2f 72 | When a|n undo/r|
|00001a90| 65 64 6f 20 6f 63 63 75 | 72 73 20 6f 62 6a 65 63 |edo occu|rs objec|
|00001aa0| 74 73 20 61 72 65 20 65 | 69 74 68 65 72 20 6d 6f |ts are e|ither mo|
|00001ab0| 76 69 6e 67 20 69 6e 74 | 6f 20 6f 72 20 6f 75 74 |ving int|o or out|
|00001ac0| 20 6f 66 20 74 68 65 0d | 64 6f 63 75 6d 65 6e 74 | of the.|document|
|00001ad0| 2e 20 20 4f 62 6a 65 63 | 74 73 20 6d 6f 76 65 20 |. Objec|ts move |
|00001ae0| 62 61 63 6b 20 61 6e 64 | 20 66 6f 72 74 68 20 62 |back and| forth b|
|00001af0| 65 74 77 65 65 6e 20 74 | 68 65 20 64 6f 63 75 6d |etween t|he docum|
|00001b00| 65 6e 74 20 61 6e 64 20 | 74 68 65 20 75 6e 64 6f |ent and |the undo|
|00001b10| 20 68 69 65 72 61 72 63 | 68 79 2e 0d 54 68 65 20 | hierarc|hy..The |
|00001b20| 73 75 62 2d 6d 65 73 73 | 61 67 65 73 20 55 4e 44 |sub-mess|ages UND|
|00001b30| 4f 46 52 4f 4d 44 4f 43 | 20 61 6e 64 20 55 4e 44 |OFROMDOC| and UND|
|00001b40| 4f 54 4f 44 4f 43 20 64 | 65 74 65 72 6d 69 6e 65 |OTODOC d|etermine|
|00001b50| 20 74 68 65 20 64 69 72 | 65 63 74 69 6f 6e 2e 20 | the dir|ection. |
|00001b60| 20 54 68 65 72 65 20 6d | 61 79 20 62 65 20 76 61 | There m|ay be va|
|00001b70| 72 69 6f 75 73 0d 74 61 | 73 6b 73 20 74 68 61 74 |rious.ta|sks that|
|00001b80| 20 6e 65 65 64 20 74 6f | 20 62 65 20 70 65 72 66 | need to| be perf|
|00001b90| 6f 72 6d 65 64 20 74 6f | 20 74 68 69 73 20 6f 62 |ormed to| this ob|
|00001ba0| 6a 65 63 74 20 61 6e 64 | 20 6f 74 68 65 72 20 70 |ject and| other p|
|00001bb0| 61 72 74 73 20 6f 66 20 | 74 68 65 20 64 6f 63 75 |arts of |the docu|
|00001bc0| 6d 65 6e 74 20 77 68 65 | 6e 20 61 6e 0d 75 6e 64 |ment whe|n an.und|
|00001bd0| 6f 2f 72 65 64 6f 20 6f | 63 63 75 72 73 2e 20 20 |o/redo o|ccurs. |
|00001be0| 57 68 65 6e 20 61 6e 20 | 75 6e 64 6f 20 6f 66 20 |When an |undo of |
|00001bf0| 61 20 44 45 4c 45 54 45 | 5f 45 44 49 54 20 69 73 |a DELETE|_EDIT is|
|00001c00| 20 70 65 72 66 6f 72 6d | 65 64 2c 20 69 74 20 69 | perform|ed, it i|
|00001c10| 73 20 74 79 70 69 63 61 | 6c 20 74 6f 20 73 65 6c |s typica|l to sel|
|00001c20| 65 63 74 0d 74 68 65 20 | 70 6f 72 74 69 6f 6e 20 |ect.the |portion |
|00001c30| 6f 66 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |of the d|ocument |
|00001c40| 75 6e 64 65 6c 65 74 65 | 64 2e 20 20 54 68 65 20 |undelete|d. The |
|00001c50| 72 6f 6f 74 20 6f 62 6a | 65 63 74 20 6d 61 79 20 |root obj|ect may |
|00001c60| 68 6f 6c 64 20 74 68 65 | 20 73 65 6c 65 63 74 69 |hold the| selecti|
|00001c70| 6f 6e 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0d |on infor|mation..|
|00001c80| 49 66 20 74 68 69 73 20 | 69 73 20 74 68 65 20 63 |If this |is the c|
|00001c90| 61 73 65 2c 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |ase, the| object |
|00001ca0| 73 68 6f 75 6c 64 20 63 | 61 6c 6c 20 47 65 74 52 |should c|all GetR|
|00001cb0| 6f 6f 74 48 6e 64 6c 20 | 61 6e 64 20 74 68 65 6e |ootHndl |and then|
|00001cc0| 20 61 64 6a 75 73 74 20 | 74 68 65 20 73 65 6c 65 | adjust |the sele|
|00001cd0| 63 74 69 6f 6e 0d 61 63 | 63 6f 72 64 69 6e 67 6c |ction.ac|cordingl|
|00001ce0| 79 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |y. Note| that th|
|00001cf0| 65 20 72 6f 6f 74 20 6f | 62 6a 65 63 74 20 6d 61 |e root o|bject ma|
|00001d00| 79 20 74 75 72 6e 20 6f | 75 74 20 74 6f 20 62 65 |y turn o|ut to be|
|00001d10| 20 74 68 65 20 75 6e 64 | 6f 20 68 69 65 72 61 72 | the und|o hierar|
|00001d20| 63 68 79 20 72 6f 6f 74 | 20 6f 62 6a 65 63 74 2e |chy root| object.|
|00001d30| 0d 49 66 20 74 68 65 20 | 6f 62 6a 65 63 74 20 68 |.If the |object h|
|00001d40| 61 73 20 62 65 65 6e 20 | 6d 6f 76 65 64 20 6f 75 |as been |moved ou|
|00001d50| 74 20 6f 66 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |t of the| documen|
|00001d60| 74 20 61 6e 64 20 69 6e | 74 6f 20 74 68 65 20 75 |t and in|to the u|
|00001d70| 6e 64 6f 20 68 69 65 72 | 61 72 63 68 79 2c 20 74 |ndo hier|archy, t|
|00001d80| 68 69 73 20 77 69 6c 6c | 0d 74 75 72 6e 20 6f 75 |his will|.turn ou|
|00001d90| 74 20 74 6f 20 62 65 20 | 74 68 65 20 63 61 73 65 |t to be |the case|
|00001da0| 2e 20 20 49 6e 20 74 68 | 69 73 20 69 6e 73 74 61 |. In th|is insta|
|00001db0| 6e 63 65 20 6e 6f 74 68 | 69 6e 67 20 77 6f 75 6c |nce noth|ing woul|
|00001dc0| 64 20 68 61 76 65 20 74 | 6f 20 62 65 20 64 6f 6e |d have t|o be don|
|00001dd0| 65 2e 20 20 41 74 20 6c | 65 61 73 74 20 6f 6e 65 |e. At l|east one|
|00001de0| 0d 6d 65 73 73 61 67 65 | 20 77 69 6c 6c 20 62 65 |.message| will be|
|00001df0| 20 73 65 6e 74 20 74 6f | 20 74 68 65 20 6f 62 6a | sent to| the obj|
|00001e00| 65 63 74 20 77 68 69 6c | 65 20 69 74 20 69 73 20 |ect whil|e it is |
|00001e10| 73 74 69 6c 6c 20 69 6e | 20 74 68 65 20 64 6f 63 |still in| the doc|
|00001e20| 75 6d 65 6e 74 2e 20 20 | 54 68 65 20 73 75 62 2d |ument. |The sub-|
|00001e30| 6d 65 73 73 61 67 65 0d | 77 69 6c 6c 20 74 68 65 |message.|will the|
|00001e40| 6e 20 73 74 61 74 65 20 | 77 68 65 74 68 65 72 20 |n state |whether |
|00001e50| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 69 73 20 |the docu|ment is |
|00001e60| 61 62 6f 75 74 20 74 6f | 20 6c 65 61 76 65 20 6f |about to| leave o|
|00001e70| 72 20 6a 75 73 74 20 77 | 61 73 20 61 64 64 65 64 |r just w|as added|
|00001e80| 20 74 6f 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | to the |document|
|00001e90| 2e 0d 4c 65 74 27 73 20 | 73 61 79 20 74 68 61 74 |..Let's |say that|
|00001ea0| 20 74 68 65 20 72 6f 6f | 74 20 6f 62 6a 65 63 74 | the roo|t object|
|00001eb0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 63 6f 75 6e | contain|s a coun|
|00001ec0| 74 20 6f 66 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |t of the| number |
|00001ed0| 6f 66 20 73 65 6c 65 63 | 74 65 64 20 69 74 65 6d |of selec|ted item|
|00001ee0| 73 2e 20 20 49 6e 20 74 | 68 69 73 0d 63 61 73 65 |s. In t|his.case|
|00001ef0| 2c 20 69 66 20 74 68 65 | 20 69 74 65 6d 20 69 73 |, if the| item is|
|00001f00| 20 73 65 6c 65 63 74 65 | 64 2c 20 61 6e 64 20 69 | selecte|d, and i|
|00001f10| 74 20 69 73 20 61 62 6f | 75 74 20 74 6f 20 6c 65 |t is abo|ut to le|
|00001f20| 61 76 65 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |ave the |document|
|00001f30| 2c 20 74 68 65 6e 20 74 | 68 65 20 63 6f 75 6e 74 |, then t|he count|
|00001f40| 20 6f 66 0d 69 74 65 6d | 73 20 73 65 6c 65 63 74 | of.item|s select|
|00001f50| 65 64 20 77 69 6c 6c 20 | 6e 65 65 64 20 74 6f 20 |ed will |need to |
|00001f60| 62 65 20 64 65 63 72 65 | 6d 65 6e 74 65 64 2e 20 |be decre|mented. |
|00001f70| 20 49 66 20 74 68 65 20 | 69 74 65 6d 20 68 61 73 | If the |item has|
|00001f80| 20 6a 75 73 74 20 6d 6f | 76 65 64 20 69 6e 74 6f | just mo|ved into|
|00001f90| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 2c 0d 74 | the doc|ument,.t|
|00001fa0| 68 65 6e 20 74 68 65 20 | 69 74 65 6d 20 6e 65 65 |hen the |item nee|
|00001fb0| 64 73 20 74 6f 20 62 65 | 20 73 65 74 20 61 73 20 |ds to be| set as |
|00001fc0| 73 65 6c 65 63 74 65 64 | 2c 20 70 6c 75 73 20 74 |selected|, plus t|
|00001fd0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 65 6c |he numbe|r of sel|
|00001fe0| 65 63 74 65 64 20 69 74 | 65 6d 73 20 63 6f 75 6e |ected it|ems coun|
|00001ff0| 74 20 6e 65 65 64 73 0d | 74 6f 20 62 65 20 69 6e |t needs.|to be in|
|00002000| 63 72 65 61 73 65 64 20 | 62 79 20 31 2e 0d 41 6e |creased |by 1..An|
|00002010| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 63 61 6c 6c | additio|nal call|
|00002020| 20 69 73 20 6d 61 64 65 | 20 70 72 69 6f 72 20 74 | is made| prior t|
|00002030| 6f 20 61 6e 79 20 6f 62 | 6a 65 63 74 73 20 62 65 |o any ob|jects be|
|00002040| 69 6e 67 20 6d 6f 76 65 | 64 2e 20 20 54 68 69 73 |ing move|d. This|
|00002050| 20 69 73 20 74 6f 20 67 | 6c 6f 62 61 6c 6c 79 20 | is to g|lobally |
|00002060| 70 72 65 70 61 72 65 0d | 74 68 65 20 64 6f 63 75 |prepare.|the docu|
|00002070| 6d 65 6e 74 20 66 6f 72 | 20 61 6e 20 75 6e 64 6f |ment for| an undo|
|00002080| 2f 72 65 64 6f 20 6f 70 | 65 72 61 74 69 6f 6e 2e |/redo op|eration.|
|00002090| 20 20 47 69 76 65 6e 20 | 74 68 61 74 20 74 68 65 | Given |that the|
|000020a0| 20 69 74 65 6d 73 20 69 | 6e 76 6f 6c 76 65 64 20 | items i|nvolved |
|000020b0| 69 6e 20 74 68 65 20 75 | 6e 64 6f 2f 72 65 64 6f |in the u|ndo/redo|
|000020c0| 0d 73 68 6f 75 6c 64 20 | 62 65 20 73 65 6c 65 63 |.should |be selec|
|000020d0| 74 65 64 2c 20 74 68 69 | 73 20 73 75 67 67 65 73 |ted, thi|s sugges|
|000020e0| 74 73 20 74 68 61 74 20 | 6f 74 68 65 72 20 73 65 |ts that |other se|
|000020f0| 6c 65 63 74 65 64 20 69 | 74 65 6d 73 20 73 68 6f |lected i|tems sho|
|00002100| 75 6c 64 20 62 65 20 64 | 65 73 65 6c 65 63 74 65 |uld be d|eselecte|
|00002110| 64 20 70 72 69 6f 72 0d | 74 6f 20 74 68 65 20 75 |d prior.|to the u|
|00002120| 6e 64 6f 2f 72 65 64 6f | 2e 20 20 54 68 69 73 20 |ndo/redo|. This |
|00002130| 67 6c 6f 62 61 6c 20 75 | 6e 64 6f 2f 72 65 64 6f |global u|ndo/redo|
|00002140| 20 73 65 74 75 70 20 63 | 61 6c 6c 20 69 73 20 74 | setup c|all is t|
|00002150| 68 65 20 70 6c 61 63 65 | 20 74 6f 20 64 6f 20 74 |he place| to do t|
|00002160| 68 69 6e 67 73 20 6c 69 | 6b 65 20 74 68 69 73 2e |hings li|ke this.|
|00002170| 0d 41 6c 73 6f 2c 20 6f | 6e 63 65 20 74 68 65 20 |.Also, o|nce the |
|00002180| 75 6e 64 6f 2f 72 65 64 | 6f 20 6f 70 65 72 61 74 |undo/red|o operat|
|00002190| 69 6f 6e 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 20 |ion is c|omplete |
|000021a0| 61 6e 64 20 61 6c 6c 20 | 6f 62 6a 65 63 74 73 20 |and all |objects |
|000021b0| 69 6e 76 6f 6c 76 65 64 | 20 69 6e 20 74 68 65 20 |involved| in the |
|000021c0| 6f 70 65 72 61 74 69 6f | 6e 0d 61 72 65 20 6d 6f |operatio|n.are mo|
|000021d0| 76 65 64 20 61 6e 64 20 | 6d 65 73 73 61 67 65 64 |ved and |messaged|
|000021e0| 2c 20 61 20 66 69 6e 61 | 6c 20 63 61 6c 6c 20 69 |, a fina|l call i|
|000021f0| 73 20 6d 61 64 65 20 74 | 6f 20 63 6c 65 61 6e 20 |s made t|o clean |
|00002200| 75 70 20 61 6e 79 20 75 | 6e 66 69 6e 69 73 68 65 |up any u|nfinishe|
|00002210| 64 20 75 6e 64 6f 2f 72 | 65 64 6f 20 62 75 73 69 |d undo/r|edo busi|
|00002220| 6e 65 73 73 2e 0d 54 6f | 20 72 65 63 61 70 20 74 |ness..To| recap t|
|00002230| 68 65 20 75 6e 64 6f 2f | 72 65 64 6f 20 70 72 6f |he undo/|redo pro|
|00002240| 63 65 64 75 72 65 3a 0d | 20 20 20 20 31 29 20 41 |cedure:.| 1) A|
|00002250| 20 67 6c 6f 62 61 6c 20 | 67 65 74 2d 72 65 61 64 | global |get-read|
|00002260| 79 2d 74 6f 2d 75 6e 64 | 6f 2f 72 65 64 6f 20 63 |y-to-und|o/redo c|
|00002270| 61 6c 6c 20 69 73 20 6d | 61 64 65 2e 20 20 54 68 |all is m|ade. Th|
|00002280| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00002290| 61 6c 6c 65 64 20 55 6e | 64 6f 46 69 78 75 70 2e |alled Un|doFixup.|
|000022a0| 0d 20 20 20 20 20 20 20 | 49 74 20 69 73 20 70 61 |. |It is pa|
|000022b0| 73 73 65 64 20 61 20 72 | 65 66 65 72 65 6e 63 65 |ssed a r|eference|
|000022c0| 20 74 6f 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | to the |document|
|000022d0| 2c 20 70 6c 75 73 20 61 | 20 73 75 62 2d 6d 65 73 |, plus a| sub-mes|
|000022e0| 73 61 67 65 20 73 74 61 | 74 69 6e 67 20 74 68 61 |sage sta|ting tha|
|000022f0| 74 20 69 74 20 69 73 0d | 20 20 20 20 20 20 20 63 |t it is.| c|
|00002300| 61 6c 6c 65 64 20 66 6f | 72 20 70 72 65 2d 75 6e |alled fo|r pre-un|
|00002310| 64 6f 2f 72 65 64 6f 20 | 74 61 73 6b 73 20 6f 72 |do/redo |tasks or|
|00002320| 20 70 6f 73 74 2d 75 6e | 64 6f 2f 72 65 64 6f 20 | post-un|do/redo |
|00002330| 74 61 73 6b 73 20 28 69 | 6e 20 74 68 69 73 20 63 |tasks (i|n this c|
|00002340| 61 73 65 20 70 72 65 2d | 75 6e 64 6f 2f 72 65 64 |ase pre-|undo/red|
|00002350| 6f 29 2e 0d 20 20 20 20 | 32 29 20 45 61 63 68 20 |o).. |2) Each |
|00002360| 6f 62 6a 65 63 74 20 69 | 6e 76 6f 6c 76 65 64 20 |object i|nvolved |
|00002370| 69 6e 20 74 68 65 20 75 | 6e 64 6f 2f 72 65 64 6f |in the u|ndo/redo|
|00002380| 20 74 61 73 6b 20 69 73 | 20 63 61 6c 6c 65 64 20 | task is| called |
|00002390| 77 69 74 68 20 61 70 70 | 72 6f 70 72 69 61 74 65 |with app|ropriate|
|000023a0| 20 6d 65 73 73 61 67 65 | 73 0d 20 20 20 20 20 20 | message|s. |
|000023b0| 20 73 74 61 74 69 6e 67 | 20 77 68 65 74 68 65 72 | stating| whether|
|000023c0| 20 69 74 20 69 73 20 6c | 65 61 76 69 6e 67 20 6f | it is l|eaving o|
|000023d0| 72 20 65 6e 74 65 72 69 | 6e 67 20 74 68 65 20 64 |r enteri|ng the d|
|000023e0| 6f 63 75 6d 65 6e 74 2e | 20 20 41 70 70 72 6f 70 |ocument.| Approp|
|000023f0| 72 69 61 74 65 20 64 6f | 63 75 6d 65 6e 74 0d 20 |riate do|cument. |
|00002400| 20 20 20 20 20 20 6d 61 | 69 6e 74 65 6e 61 6e 63 | ma|intenanc|
|00002410| 65 20 74 61 73 6b 73 20 | 73 68 6f 75 6c 64 20 62 |e tasks |should b|
|00002420| 65 20 70 65 72 66 6f 72 | 6d 65 64 20 62 61 73 65 |e perfor|med base|
|00002430| 64 20 6f 6e 20 74 68 65 | 73 65 20 6d 65 73 73 61 |d on the|se messa|
|00002440| 67 65 73 2f 73 75 62 2d | 6d 65 73 73 61 67 65 73 |ges/sub-|messages|
|00002450| 2e 0d 20 20 20 20 31 29 | 20 55 6e 64 6f 46 69 78 |.. 1)| UndoFix|
|00002460| 75 70 20 69 73 20 63 61 | 6c 6c 65 64 20 61 20 66 |up is ca|lled a f|
|00002470| 69 6e 61 6c 20 74 69 6d | 65 2e 20 20 4f 6e 63 65 |inal tim|e. Once|
|00002480| 20 61 67 61 69 6e 2c 20 | 69 74 20 69 73 20 70 61 | again, |it is pa|
|00002490| 73 73 65 64 20 61 20 72 | 65 66 65 72 65 6e 63 65 |ssed a r|eference|
|000024a0| 20 74 6f 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | to the |document|
|000024b0| 2c 0d 20 20 20 20 20 20 | 20 70 6c 75 73 20 61 20 |,. | plus a |
|000024c0| 73 75 62 2d 6d 65 73 73 | 61 67 65 20 73 74 61 74 |sub-mess|age stat|
|000024d0| 69 6e 67 20 74 68 61 74 | 20 69 74 20 69 73 20 63 |ing that| it is c|
|000024e0| 61 6c 6c 65 64 20 66 6f | 72 20 70 6f 73 74 2d 75 |alled fo|r post-u|
|000024f0| 6e 64 6f 2f 72 65 64 6f | 20 74 61 73 6b 73 2e 0d |ndo/redo| tasks..|
|00002500| 0d 43 4f 4e 56 45 52 54 | 4d 45 53 53 41 47 45 3a |.CONVERT|MESSAGE:|
|00002510| 20 20 54 68 69 73 20 69 | 73 20 63 61 6c 6c 65 64 | This i|s called|
|00002520| 20 74 6f 20 63 6f 6e 76 | 65 72 74 20 68 61 6e 64 | to conv|ert hand|
|00002530| 6c 65 20 72 65 66 65 72 | 65 6e 63 65 73 20 77 69 |le refer|ences wi|
|00002540| 74 68 69 6e 20 61 6e 20 | 6f 62 6a 65 63 74 20 74 |thin an |object t|
|00002550| 6f 20 74 72 65 65 49 44 | 0d 76 61 6c 75 65 73 20 |o treeID|.values |
|00002560| 61 6e 64 20 76 69 73 61 | 20 76 65 72 73 61 2c 20 |and visa| versa, |
|00002570| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |dependin|g on the|
|00002580| 20 73 75 62 2d 6d 65 73 | 73 61 67 65 2e 0d 46 6f | sub-mes|sage..Fo|
|00002590| 72 20 74 68 65 20 73 75 | 62 2d 6d 65 73 73 61 67 |r the su|b-messag|
|000025a0| 65 20 43 4f 4e 56 45 52 | 54 54 4f 49 44 3a 20 20 |e CONVER|TTOID: |
|000025b0| 50 72 69 6f 72 20 74 6f | 20 74 68 65 20 66 69 72 |Prior to| the fir|
|000025c0| 73 74 20 6f 62 6a 65 63 | 74 20 62 65 69 6e 67 20 |st objec|t being |
|000025d0| 77 72 69 74 74 65 6e 20 | 74 6f 20 64 69 73 6b 2c |written |to disk,|
|000025e0| 20 44 6f 4e 75 6d 62 65 | 72 54 72 65 65 0d 69 73 | DoNumbe|rTree.is|
|000025f0| 20 63 61 6c 6c 65 64 20 | 74 6f 20 61 73 73 69 67 | called |to assig|
|00002600| 6e 20 61 20 75 6e 69 71 | 75 65 20 74 72 65 65 49 |n a uniq|ue treeI|
|00002610| 44 20 74 6f 20 65 61 63 | 68 20 6f 62 6a 65 63 74 |D to eac|h object|
|00002620| 20 69 6e 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | in the |document|
|00002630| 2e 20 20 46 6f 72 20 65 | 61 63 68 20 68 61 6e 64 |. For e|ach hand|
|00002640| 6c 65 20 72 65 66 65 72 | 65 6e 63 65 0d 69 6e 20 |le refer|ence.in |
|00002650| 61 6e 20 6f 62 6a 65 63 | 74 2c 20 63 61 6c 6c 20 |an objec|t, call |
|00002660| 48 6e 64 6c 32 49 44 20 | 74 6f 20 63 6f 6e 76 65 |Hndl2ID |to conve|
|00002670| 72 74 20 69 74 20 74 6f | 20 61 20 74 72 65 65 49 |rt it to| a treeI|
|00002680| 44 20 76 61 6c 75 65 2e | 20 20 4f 6e 63 65 20 74 |D value.| Once t|
|00002690| 68 65 20 6f 62 6a 65 63 | 74 20 69 73 20 77 72 69 |he objec|t is wri|
|000026a0| 74 74 65 6e 20 74 6f 0d | 64 69 73 6b 2c 20 74 68 |tten to.|disk, th|
|000026b0| 65 20 6f 62 6a 65 63 74 | 20 77 69 6c 6c 20 62 65 |e object| will be|
|000026c0| 20 63 61 6c 6c 65 64 20 | 61 67 61 69 6e 20 77 69 | called |again wi|
|000026d0| 74 68 20 74 68 65 20 73 | 75 62 2d 6d 65 73 73 61 |th the s|ub-messa|
|000026e0| 67 65 20 43 4f 4e 56 45 | 52 54 54 4f 48 4e 44 4c |ge CONVE|RTTOHNDL|
|000026f0| 2e 20 20 54 68 69 73 20 | 69 6e 64 69 63 61 74 65 |. This |indicate|
|00002700| 73 20 74 68 61 74 0d 74 | 68 65 20 68 61 6e 64 6c |s that.t|he handl|
|00002710| 65 20 72 65 66 65 72 65 | 6e 63 65 73 20 74 68 61 |e refere|nces tha|
|00002720| 74 20 77 65 72 65 20 63 | 6f 6e 76 65 72 74 65 64 |t were c|onverted|
|00002730| 20 74 6f 20 74 72 65 65 | 49 44 20 76 61 6c 75 65 | to tree|ID value|
|00002740| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 63 6f 6e 76 |s should| be conv|
|00002750| 65 72 74 65 64 20 62 61 | 63 6b 2e 20 20 43 61 6c |erted ba|ck. Cal|
|00002760| 6c 0d 49 44 32 48 6e 64 | 6c 20 74 6f 20 64 6f 20 |l.ID2Hnd|l to do |
|00002770| 74 68 65 20 72 65 76 65 | 72 73 65 20 63 6f 6e 76 |the reve|rse conv|
|00002780| 65 72 73 69 6f 6e 2e 0d | 46 6f 72 20 74 68 65 20 |ersion..|For the |
|00002790| 73 75 62 2d 6d 65 73 73 | 61 67 65 20 43 4f 4e 56 |sub-mess|age CONV|
|000027a0| 45 52 54 54 4f 48 4e 44 | 4c 3a 20 20 54 68 65 20 |ERTTOHND|L: The |
|000027b0| 65 6e 74 69 72 65 20 64 | 6f 63 75 6d 65 6e 74 20 |entire d|ocument |
|000027c0| 69 73 20 69 6e 20 6d 65 | 6d 6f 72 79 20 70 72 69 |is in me|mory pri|
|000027d0| 6f 72 20 74 6f 20 65 76 | 65 72 20 72 65 63 65 69 |or to ev|er recei|
|000027e0| 76 69 6e 67 20 74 68 69 | 73 0d 6d 65 73 73 61 67 |ving thi|s.messag|
|000027f0| 65 2e 20 20 49 6e 20 74 | 68 65 20 63 61 73 65 20 |e. In t|he case |
|00002800| 6f 66 20 77 72 69 74 69 | 6e 67 20 61 20 64 6f 63 |of writi|ng a doc|
|00002810| 75 6d 65 6e 74 20 74 6f | 20 64 69 73 6b 2c 20 74 |ument to| disk, t|
|00002820| 68 65 20 64 6f 63 75 6d | 65 6e 74 20 69 73 20 61 |he docum|ent is a|
|00002830| 6c 72 65 61 64 79 20 69 | 6e 20 6d 65 6d 6f 72 79 |lready i|n memory|
|00002840| 2e 20 20 46 6f 72 0d 74 | 68 65 20 63 61 73 65 20 |. For.t|he case |
|00002850| 77 68 65 72 65 20 61 20 | 64 6f 63 75 6d 65 6e 74 |where a |document|
|00002860| 20 69 73 20 62 65 69 6e | 67 20 6f 70 65 6e 65 64 | is bein|g opened|
|00002870| 2c 20 74 68 65 20 65 6e | 74 69 72 65 20 64 6f 63 |, the en|tire doc|
|00002880| 75 6d 65 6e 74 20 69 73 | 20 66 69 72 73 74 20 72 |ument is| first r|
|00002890| 65 61 64 20 69 6e 2c 20 | 61 6e 64 20 74 68 65 6e |ead in, |and then|
|000028a0| 0d 6f 62 6a 65 63 74 73 | 20 61 72 65 20 70 61 73 |.objects| are pas|
|000028b0| 73 65 64 20 74 68 69 73 | 20 6d 65 73 73 61 67 65 |sed this| message|
|000028c0| 20 61 73 20 61 6e 20 6f | 70 70 6f 72 74 75 6e 69 | as an o|pportuni|
|000028d0| 74 79 20 74 6f 20 63 6f | 6e 76 65 72 74 20 74 72 |ty to co|nvert tr|
|000028e0| 65 65 49 44 20 76 61 6c | 75 65 73 20 69 6e 74 6f |eeID val|ues into|
|000028f0| 20 68 61 6e 64 6c 65 20 | 72 65 66 65 72 65 6e 63 | handle |referenc|
|00002900| 65 73 2e 0d 49 6e 20 65 | 69 74 68 65 72 20 63 61 |es..In e|ither ca|
|00002910| 73 65 2c 20 44 6f 4e 75 | 6d 62 65 72 54 72 65 65 |se, DoNu|mberTree|
|00002920| 20 77 69 6c 6c 20 68 61 | 76 65 20 61 6c 72 65 61 | will ha|ve alrea|
|00002930| 64 79 20 62 65 65 6e 20 | 63 61 6c 6c 65 64 2c 20 |dy been |called, |
|00002940| 73 6f 20 69 74 20 69 73 | 20 6f 6b 61 79 20 74 6f |so it is| okay to|
|00002950| 20 63 61 6c 6c 20 49 44 | 32 48 6e 64 6c 2e 0d 0d | call ID|2Hndl...|
|00002960| 46 52 45 41 44 4d 45 53 | 53 41 47 45 3a 20 20 54 |FREADMES|SAGE: T|
|00002970| 68 69 73 20 69 73 20 63 | 61 6c 6c 65 64 20 74 6f |his is c|alled to|
|00002980| 20 72 65 61 64 20 69 6e | 20 74 68 65 20 64 61 74 | read in| the dat|
|00002990| 61 20 70 6f 72 74 69 6f | 6e 20 6f 66 20 61 6e 20 |a portio|n of an |
|000029a0| 6f 62 6a 65 63 74 2e 20 | 20 54 68 65 20 68 65 61 |object. | The hea|
|000029b0| 64 65 72 0d 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |der.info|rmation |
|000029c0| 68 61 73 20 61 6c 72 65 | 61 64 79 20 62 65 65 6e |has alre|ady been|
|000029d0| 20 72 65 61 64 20 69 6e | 2e 20 20 53 69 6e 63 65 | read in|. Since|
|000029e0| 20 74 68 65 20 68 65 61 | 64 65 72 20 69 6e 66 6f | the hea|der info|
|000029f0| 72 6d 61 74 69 6f 6e 20 | 64 6f 65 73 6e 27 74 20 |rmation |doesn't |
|00002a00| 76 61 72 79 20 61 63 63 | 6f 72 64 69 6e 67 0d 74 |vary acc|ording.t|
|00002a10| 6f 20 74 68 65 20 6f 62 | 6a 65 63 74 20 74 79 70 |o the ob|ject typ|
|00002a20| 65 2c 20 69 74 20 63 61 | 6e 20 62 65 20 72 65 61 |e, it ca|n be rea|
|00002a30| 64 20 69 6e 20 67 65 6e | 65 72 69 63 61 6c 6c 79 |d in gen|erically|
|00002a40| 2e 20 20 41 6c 73 6f 2c | 20 74 68 65 20 68 65 61 |. Also,| the hea|
|00002a50| 64 65 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |der info|rmation |
|00002a60| 73 74 61 74 65 73 20 77 | 68 61 74 0d 74 79 70 65 |states w|hat.type|
|00002a70| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 2c 20 | the obj|ect is, |
|00002a80| 73 6f 20 75 6e 74 69 6c | 20 69 74 20 74 68 65 20 |so until| it the |
|00002a90| 68 65 61 64 65 72 20 69 | 73 20 72 65 61 64 20 69 |header i|s read i|
|00002aa0| 6e 2c 20 74 68 65 20 6f | 62 6a 65 63 74 20 74 79 |n, the o|bject ty|
|00002ab0| 70 65 20 63 61 6e 27 74 | 20 62 65 20 64 65 74 65 |pe can't| be dete|
|00002ac0| 72 6d 69 6e 65 64 2e 0d | 49 66 20 74 68 65 20 64 |rmined..|If the d|
|00002ad0| 61 74 61 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |ata does|n't have|
|00002ae0| 20 61 6e 79 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 | any add|itional |
|00002af0| 68 61 6e 64 6c 65 20 72 | 65 66 65 72 65 6e 63 65 |handle r|eference|
|00002b00| 73 2c 20 6a 75 73 74 20 | 63 61 6c 6c 20 74 68 65 |s, just |call the|
|00002b10| 20 64 65 66 61 75 6c 74 | 20 66 75 6e 63 74 69 6f | default| functio|
|00002b20| 6e 0d 74 6f 20 72 65 61 | 64 20 69 6e 20 74 68 65 |n.to rea|d in the|
|00002b30| 20 64 61 74 61 2e 20 20 | 54 68 65 20 64 65 66 61 | data. |The defa|
|00002b40| 75 6c 74 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |ult func|tion is |
|00002b50| 63 61 6c 6c 65 64 20 52 | 65 61 64 54 72 65 65 4f |called R|eadTreeO|
|00002b60| 62 6a 44 61 74 61 2e 20 | 20 49 74 20 77 69 6c 6c |bjData. | It will|
|00002b70| 20 72 65 61 64 20 69 6e | 0d 74 68 65 20 6e 75 6d | read in|.the num|
|00002b80| 62 65 72 20 6f 66 20 62 | 79 74 65 73 20 64 65 73 |ber of b|ytes des|
|00002b90| 69 67 6e 61 74 65 64 20 | 62 79 20 74 68 65 20 64 |ignated |by the d|
|00002ba0| 61 74 61 53 69 7a 65 20 | 69 6e 20 74 68 65 20 68 |ataSize |in the h|
|00002bb0| 65 61 64 65 72 2c 20 77 | 68 69 63 68 20 68 61 73 |eader, w|hich has|
|00002bc0| 20 61 6c 72 65 61 64 79 | 20 62 65 65 6e 20 72 65 | already| been re|
|00002bd0| 61 64 20 69 6e 2e 0d 49 | 66 20 74 68 65 72 65 20 |ad in..I|f there |
|00002be0| 69 73 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 64 61 |is addit|ional da|
|00002bf0| 74 61 20 66 6f 72 20 74 | 68 65 20 6f 62 6a 65 63 |ta for t|he objec|
|00002c00| 74 20 74 6f 20 62 65 20 | 6b 65 70 74 20 69 6e 20 |t to be |kept in |
|00002c10| 68 61 6e 64 6c 65 73 2c | 20 6f 72 20 73 6f 6d 65 |handles,| or some|
|00002c20| 20 73 75 63 68 20 6f 74 | 68 65 72 20 75 6e 69 71 | such ot|her uniq|
|00002c30| 75 65 0d 73 69 74 75 61 | 74 69 6f 6e 2c 20 74 68 |ue.situa|tion, th|
|00002c40| 65 20 63 6f 64 65 20 74 | 6f 20 64 6f 20 74 68 69 |e code t|o do thi|
|00002c50| 73 20 67 6f 65 73 20 68 | 65 72 65 2e 0d 0d 46 57 |s goes h|ere...FW|
|00002c60| 52 49 54 45 4d 45 53 53 | 41 47 45 3a 20 20 54 68 |RITEMESS|AGE: Th|
|00002c70| 69 73 20 69 73 20 63 61 | 6c 6c 65 64 20 74 6f 20 |is is ca|lled to |
|00002c80| 77 72 69 74 65 20 6f 75 | 74 20 74 68 65 20 64 61 |write ou|t the da|
|00002c90| 74 61 20 70 6f 72 74 69 | 6f 6e 20 6f 66 20 61 6e |ta porti|on of an|
|00002ca0| 20 6f 62 6a 65 63 74 2e | 20 20 54 68 65 20 68 65 | object.| The he|
|00002cb0| 61 64 65 72 0d 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ader.inf|ormation|
|00002cc0| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 62 65 65 | has alr|eady bee|
|00002cd0| 6e 20 77 72 69 74 74 65 | 6e 2e 20 20 53 69 6e 63 |n writte|n. Sinc|
|00002ce0| 65 20 74 68 65 20 68 65 | 61 64 65 72 20 69 6e 66 |e the he|ader inf|
|00002cf0| 6f 72 6d 61 74 69 6f 6e | 20 64 6f 65 73 6e 27 74 |ormation| doesn't|
|00002d00| 20 76 61 72 79 20 61 63 | 63 6f 72 64 69 6e 67 0d | vary ac|cording.|
|00002d10| 74 6f 20 74 68 65 20 6f | 62 6a 65 63 74 20 74 79 |to the o|bject ty|
|00002d20| 70 65 2c 20 69 74 20 63 | 61 6e 20 62 65 20 77 72 |pe, it c|an be wr|
|00002d30| 69 74 74 65 6e 20 67 65 | 6e 65 72 69 63 61 6c 6c |itten ge|nericall|
|00002d40| 79 2e 20 20 49 66 20 74 | 68 65 20 64 61 74 61 20 |y. If t|he data |
|00002d50| 64 6f 65 73 6e 27 74 20 | 68 61 76 65 20 61 6e 79 |doesn't |have any|
|00002d60| 20 61 64 64 69 74 69 6f | 6e 61 6c 0d 68 61 6e 64 | additio|nal.hand|
|00002d70| 6c 65 20 72 65 66 65 72 | 65 6e 63 65 73 2c 20 6a |le refer|ences, j|
|00002d80| 75 73 74 20 63 61 6c 6c | 20 74 68 65 20 64 65 66 |ust call| the def|
|00002d90| 61 75 6c 74 20 66 75 6e | 63 74 69 6f 6e 20 74 6f |ault fun|ction to|
|00002da0| 20 77 72 69 74 65 20 6f | 75 74 20 74 68 65 20 64 | write o|ut the d|
|00002db0| 61 74 61 2e 20 20 54 68 | 65 20 64 65 66 61 75 6c |ata. Th|e defaul|
|00002dc0| 74 0d 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 63 61 |t.functi|on is ca|
|00002dd0| 6c 6c 65 64 20 57 72 69 | 74 65 54 72 65 65 4f 62 |lled Wri|teTreeOb|
|00002de0| 6a 44 61 74 61 2e 20 20 | 49 74 20 77 69 6c 6c 20 |jData. |It will |
|00002df0| 77 72 69 74 65 20 6f 75 | 74 20 74 68 65 20 6e 75 |write ou|t the nu|
|00002e00| 6d 62 65 72 20 6f 66 20 | 62 79 74 65 73 20 64 65 |mber of |bytes de|
|00002e10| 73 69 67 6e 61 74 65 64 | 20 62 79 0d 74 68 65 20 |signated| by.the |
|00002e20| 64 61 74 61 53 69 7a 65 | 20 69 6e 20 74 68 65 20 |dataSize| in the |
|00002e30| 68 65 61 64 65 72 2e 20 | 20 49 66 20 74 68 65 72 |header. | If ther|
|00002e40| 65 20 69 73 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |e is add|itional |
|00002e50| 64 61 74 61 20 66 6f 72 | 20 74 68 65 20 6f 62 6a |data for| the obj|
|00002e60| 65 63 74 20 6b 65 70 74 | 20 69 6e 20 68 61 6e 64 |ect kept| in hand|
|00002e70| 6c 65 73 2c 20 6f 72 0d | 73 6f 6d 65 20 73 75 63 |les, or.|some suc|
|00002e80| 68 20 6f 74 68 65 72 20 | 75 6e 69 71 75 65 20 73 |h other |unique s|
|00002e90| 69 74 75 61 74 69 6f 6e | 2c 20 74 68 65 20 63 6f |ituation|, the co|
|00002ea0| 64 65 20 74 6f 20 77 72 | 69 74 65 20 74 68 69 73 |de to wr|ite this|
|00002eb0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 64 61 74 61 | additio|nal data|
|00002ec0| 20 67 6f 65 73 20 68 65 | 72 65 2e 0d 0d 48 52 45 | goes he|re...HRE|
|00002ed0| 41 44 4d 45 53 53 41 47 | 45 3a 20 20 54 68 69 73 |ADMESSAG|E: This|
|00002ee0| 20 6d 65 73 73 61 67 65 | 20 69 73 20 73 69 6d 69 | message| is simi|
|00002ef0| 6c 61 72 20 74 6f 20 46 | 52 45 41 44 4d 45 53 53 |lar to F|READMESS|
|00002f00| 41 47 45 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |AGE, exc|ept that|
|00002f10| 20 74 68 65 20 64 61 74 | 61 20 69 73 20 72 65 61 | the dat|a is rea|
|00002f20| 64 20 66 72 6f 6d 0d 61 | 20 68 61 6e 64 6c 65 20 |d from.a| handle |
|00002f30| 69 6e 73 74 65 61 64 20 | 6f 66 20 66 72 6f 6d 20 |instead |of from |
|00002f40| 64 69 73 6b 2e 20 20 54 | 68 65 20 61 73 73 75 6d |disk. T|he assum|
|00002f50| 70 74 69 6f 6e 20 69 73 | 20 74 68 61 74 20 74 68 |ption is| that th|
|00002f60| 65 20 64 61 74 61 20 69 | 73 20 61 6c 72 65 61 64 |e data i|s alread|
|00002f70| 79 20 69 6e 20 61 20 68 | 61 6e 64 6c 65 2e 0d 41 |y in a h|andle..A|
|00002f80| 20 68 61 6e 64 6c 65 20 | 63 6f 6e 74 61 69 6e 69 | handle |containi|
|00002f90| 6e 67 20 74 68 65 20 6f | 62 6a 65 63 74 27 73 20 |ng the o|bject's |
|00002fa0| 64 61 74 61 20 69 73 20 | 70 61 73 73 65 64 20 69 |data is |passed i|
|00002fb0| 6e 2e 20 20 54 68 65 20 | 68 61 6e 64 6c 65 20 69 |n. The |handle i|
|00002fc0| 73 20 74 68 65 20 73 61 | 6d 65 20 73 69 7a 65 20 |s the sa|me size |
|00002fd0| 61 73 20 74 68 65 20 64 | 61 74 61 53 69 7a 65 0d |as the d|ataSize.|
|00002fe0| 66 69 65 6c 64 20 66 6f | 72 20 74 68 65 20 6f 62 |field fo|r the ob|
|00002ff0| 6a 65 63 74 2e 20 20 49 | 66 20 74 68 65 20 6f 62 |ject. I|f the ob|
|00003000| 6a 65 63 74 27 73 20 64 | 61 74 61 20 69 73 20 66 |ject's d|ata is f|
|00003010| 6c 61 74 2c 20 74 68 65 | 6e 20 79 6f 75 20 63 61 |lat, the|n you ca|
|00003020| 6e 20 73 69 6d 70 6c 79 | 20 64 6f 20 74 68 65 20 |n simply| do the |
|00003030| 66 6f 6c 6c 6f 77 69 6e | 67 3a 0d 20 20 20 20 63 |followin|g:. c|
|00003040| 61 73 65 20 48 52 45 41 | 44 4d 45 53 53 41 47 45 |ase HREA|DMESSAGE|
|00003050| 3a 0d 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |:. | return|
|00003060| 28 48 52 65 61 64 54 72 | 65 65 4f 62 6a 44 61 74 |(HReadTr|eeObjDat|
|00003070| 61 28 68 6e 64 6c 2c 20 | 28 48 61 6e 64 6c 65 29 |a(hndl, |(Handle)|
|00003080| 64 61 74 61 29 29 3b 0d | 20 20 20 20 20 20 20 20 |data));.| |
|00003090| 62 72 65 61 6b 3b 0d 49 | 66 20 74 68 65 20 6f 62 |break;.I|f the ob|
|000030a0| 6a 65 63 74 27 73 20 64 | 61 74 61 20 69 73 6e 27 |ject's d|ata isn'|
|000030b0| 74 20 66 6c 61 74 2c 20 | 74 68 65 6e 20 79 6f 75 |t flat, |then you|
|000030c0| 20 77 69 6c 6c 20 68 61 | 76 65 20 74 6f 20 6d 6f | will ha|ve to mo|
|000030d0| 76 65 20 74 68 65 20 64 | 61 74 61 20 66 72 6f 6d |ve the d|ata from|
|000030e0| 20 74 68 65 20 68 61 6e | 64 6c 65 20 69 6e 74 6f | the han|dle into|
|000030f0| 20 74 68 65 0d 6f 62 6a | 65 63 74 20 61 73 20 69 | the.obj|ect as i|
|00003100| 73 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 66 6f |s approp|riate fo|
|00003110| 72 20 74 68 69 73 20 6f | 62 6a 65 63 74 2e 20 20 |r this o|bject. |
|00003120| 54 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 73 |The abil|ity to s|
|00003130| 74 72 65 61 6d 20 64 61 | 74 61 20 6e 6f 74 20 6f |tream da|ta not o|
|00003140| 6e 6c 79 20 74 6f 20 74 | 68 65 20 66 69 6c 65 2c |nly to t|he file,|
|00003150| 0d 62 75 74 20 74 6f 20 | 61 20 68 61 6e 64 6c 65 |.but to |a handle|
|00003160| 20 69 73 20 72 65 61 6c | 6c 79 20 63 6f 6e 76 65 | is real|ly conve|
|00003170| 6e 69 65 6e 74 2e 20 20 | 42 79 20 63 61 6c 6c 69 |nient. |By calli|
|00003180| 6e 67 20 74 68 65 20 54 | 72 65 65 4f 62 6a 2e 63 |ng the T|reeObj.c|
|00003190| 20 66 75 6e 63 74 69 6f | 6e 20 48 57 72 69 74 65 | functio|n HWrite|
|000031a0| 54 72 65 65 2c 20 79 6f | 75 20 63 61 6e 0d 73 74 |Tree, yo|u can.st|
|000031b0| 72 65 61 6d 20 61 6e 79 | 20 74 72 65 65 20 28 6f |ream any| tree (o|
|000031c0| 72 20 62 72 61 6e 63 68 | 29 20 69 6e 74 6f 20 61 |r branch|) into a|
|000031d0| 20 68 61 6e 64 6c 65 2e | 20 20 59 6f 75 20 63 61 | handle.| You ca|
|000031e0| 6e 20 74 68 65 6e 20 73 | 61 76 65 20 74 68 65 20 |n then s|ave the |
|000031f0| 68 61 6e 64 6c 65 20 61 | 73 20 61 20 72 65 73 6f |handle a|s a reso|
|00003200| 75 72 63 65 2c 20 6f 72 | 20 79 6f 75 0d 63 61 6e |urce, or| you.can|
|00003210| 20 73 65 6e 64 20 69 74 | 20 74 6f 20 61 6e 6f 74 | send it| to anot|
|00003220| 68 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |her appl|ication |
|00003230| 76 69 61 20 41 70 70 6c | 65 45 76 65 6e 74 73 2e |via Appl|eEvents.|
|00003240| 20 20 4f 6e 63 65 20 72 | 65 61 64 2c 20 69 74 20 | Once r|ead, it |
|00003250| 63 61 6e 20 62 65 20 75 | 6e 73 74 72 65 61 6d 65 |can be u|nstreame|
|00003260| 64 20 62 79 0d 63 61 6c | 6c 69 6e 67 20 48 52 65 |d by.cal|ling HRe|
|00003270| 61 64 54 72 65 65 2e 0d | 0d 48 57 52 49 54 45 4d |adTree..|.HWRITEM|
|00003280| 45 53 53 41 47 45 3a 20 | 20 54 68 69 73 20 6d 65 |ESSAGE: | This me|
|00003290| 73 73 61 67 65 20 69 73 | 20 73 69 6d 69 6c 61 72 |ssage is| similar|
|000032a0| 20 74 6f 20 46 57 52 49 | 54 45 4d 45 53 53 41 47 | to FWRI|TEMESSAG|
|000032b0| 45 2c 20 65 78 63 65 70 | 74 20 74 68 61 74 20 69 |E, excep|t that i|
|000032c0| 74 20 69 73 20 75 73 65 | 64 20 74 6f 20 77 72 69 |t is use|d to wri|
|000032d0| 74 65 0d 74 68 65 20 64 | 61 74 61 20 69 6e 74 6f |te.the d|ata into|
|000032e0| 20 61 20 68 61 6e 64 6c | 65 2e 20 20 53 65 65 20 | a handl|e. See |
|000032f0| 74 68 65 20 48 52 45 41 | 44 4d 45 53 53 41 47 45 |the HREA|DMESSAGE|
|00003300| 20 66 6f 72 20 6d 6f 72 | 65 20 69 6e 66 6f 2e 0d | for mor|e info..|
|00003310| 0d 48 49 54 54 45 53 54 | 4d 45 53 53 41 47 45 3a |.HITTEST|MESSAGE:|
|00003320| 20 20 54 68 69 73 20 6d | 65 73 73 61 67 65 20 69 | This m|essage i|
|00003330| 73 20 75 73 65 64 20 66 | 6f 72 20 68 69 74 2d 74 |s used f|or hit-t|
|00003340| 65 73 74 69 6e 67 20 6f | 66 20 61 6e 20 6f 62 6a |esting o|f an obj|
|00003350| 65 63 74 2c 20 61 6c 6f | 6e 67 20 77 69 74 68 20 |ect, alo|ng with |
|00003360| 76 61 72 69 6f 75 73 0d | 74 61 72 67 65 74 69 6e |various.|targetin|
|00003370| 67 20 61 6e 64 20 6b 65 | 79 73 74 72 6f 6b 65 20 |g and ke|ystroke |
|00003380| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |informat|ion for |
|00003390| 74 68 65 20 6f 62 6a 65 | 63 74 2e 20 20 53 65 65 |the obje|ct. See|
|000033a0| 20 74 68 65 20 44 54 53 | 2e 44 72 61 77 20 65 78 | the DTS|.Draw ex|
|000033b0| 61 6d 70 6c 65 20 66 6f | 72 0d 69 6d 70 6c 65 6d |ample fo|r.implem|
|000033c0| 65 6e 74 61 74 69 6f 6e | 20 64 65 74 61 69 6c 73 |entation| details|
|000033d0| 2e 0d 0d 47 45 54 52 47 | 4e 4d 45 53 53 41 47 45 |...GETRG|NMESSAGE|
|000033e0| 3a 20 20 54 68 69 73 20 | 6d 65 73 73 61 67 65 20 |: This |message |
|000033f0| 69 73 20 72 65 71 75 65 | 73 74 69 6e 67 20 74 68 |is reque|sting th|
|00003400| 61 74 20 74 68 65 20 6f | 62 6a 65 63 74 20 72 65 |at the o|bject re|
|00003410| 74 75 72 6e 20 61 20 72 | 65 67 69 6f 6e 20 74 68 |turn a r|egion th|
|00003420| 61 74 20 64 65 73 63 72 | 69 62 65 73 0d 69 74 73 |at descr|ibes.its|
|00003430| 20 73 68 61 70 65 2e 0d | 0d 47 45 54 42 42 4f 58 | shape..|.GETBBOX|
|00003440| 4d 45 53 53 41 47 45 3a | 20 20 54 68 69 73 20 6d |MESSAGE:| This m|
|00003450| 65 73 73 61 67 65 20 69 | 73 20 72 65 71 75 65 73 |essage i|s reques|
|00003460| 74 69 6e 67 20 74 68 61 | 74 20 74 68 65 20 6f 62 |ting tha|t the ob|
|00003470| 6a 65 63 74 20 72 65 74 | 75 72 6e 20 61 20 72 65 |ject ret|urn a re|
|00003480| 63 74 61 6e 67 6c 65 20 | 74 68 61 74 20 65 6e 63 |ctangle |that enc|
|00003490| 6c 6f 73 65 73 0d 61 6c | 6c 20 70 6f 72 74 69 6f |loses.al|l portio|
|000034a0| 6e 73 20 6f 66 20 74 68 | 65 20 6f 62 6a 65 63 74 |ns of th|e object|
|000034b0| 2e 0d 0d 53 45 54 42 42 | 4f 58 4d 45 53 53 41 47 |...SETBB|OXMESSAG|
|000034c0| 45 3a 20 20 54 68 69 73 | 20 6d 65 73 73 61 67 65 |E: This| message|
|000034d0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 63 68 61 6e | is used| to chan|
|000034e0| 67 65 20 74 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |ge the s|ize of t|
|000034f0| 68 65 20 62 6f 75 6e 64 | 69 6e 67 20 72 65 63 74 |he bound|ing rect|
|00003500| 61 6e 67 6c 65 20 66 6f | 72 0d 61 6e 20 6f 62 6a |angle fo|r.an obj|
|00003510| 65 63 74 2e 0d 0d 53 45 | 43 54 42 42 4f 58 4d 45 |ect...SE|CTBBOXME|
|00003520| 53 53 41 47 45 3a 20 20 | 54 68 69 73 20 6d 65 73 |SSAGE: |This mes|
|00003530| 73 61 67 65 20 69 73 20 | 75 73 65 64 20 74 6f 20 |sage is |used to |
|00003540| 64 65 74 65 72 6d 69 6e | 65 20 69 66 20 74 68 65 |determin|e if the|
|00003550| 20 6f 62 6a 65 63 74 27 | 73 20 62 6f 75 6e 64 69 | object'|s boundi|
|00003560| 6e 67 20 72 65 63 74 61 | 6e 67 6c 65 0d 69 6e 74 |ng recta|ngle.int|
|00003570| 65 72 73 65 63 74 73 20 | 74 68 65 20 67 69 76 65 |ersects |the give|
|00003580| 6e 20 72 65 63 74 61 6e | 67 6c 65 2e 0d 0d 54 41 |n rectan|gle...TA|
|00003590| 52 47 45 54 4d 45 53 53 | 41 47 45 3a 20 20 54 68 |RGETMESS|AGE: Th|
|000035a0| 69 73 20 6d 65 73 73 61 | 67 65 20 69 73 20 68 6f |is messa|ge is ho|
|000035b0| 77 20 61 6e 20 6f 62 6a | 65 63 74 20 69 73 20 6d |w an obj|ect is m|
|000035c0| 61 64 65 20 74 68 65 20 | 74 61 72 67 65 74 20 6f |ade the |target o|
|000035d0| 72 20 6e 6f 74 20 74 68 | 65 20 74 61 72 67 65 74 |r not th|e target|
|000035e0| 20 6f 66 20 6b 65 79 73 | 74 72 6f 6b 65 73 2e 0d | of keys|trokes..|
|000035f0| 0d 44 52 41 57 4d 45 53 | 53 41 47 45 3a 20 20 54 |.DRAWMES|SAGE: T|
|00003600| 68 69 73 20 6d 65 73 73 | 61 67 65 20 61 6e 64 20 |his mess|age and |
|00003610| 73 75 62 2d 6d 65 73 73 | 61 67 65 20 69 73 20 74 |sub-mess|age is t|
|00003620| 6f 20 74 65 6c 6c 20 74 | 68 65 20 6f 62 6a 65 63 |o tell t|he objec|
|00003630| 74 20 74 6f 20 64 72 61 | 77 20 69 74 73 65 6c 66 |t to dra|w itself|
|00003640| 2c 20 61 6e 64 20 69 6e | 0d 77 68 61 74 20 66 6f |, and in|.what fo|
|00003650| 72 6d 2e 0d 0d 50 52 49 | 4e 54 4d 45 53 53 41 47 |rm...PRI|NTMESSAG|
|00003660| 45 3a 20 20 54 68 69 73 | 20 6d 65 73 73 61 67 65 |E: This| message|
|00003670| 20 69 73 20 74 6f 20 74 | 65 6c 6c 20 74 68 65 20 | is to t|ell the |
|00003680| 6f 62 6a 65 63 74 20 74 | 6f 20 70 72 69 6e 74 20 |object t|o print |
|00003690| 69 74 73 65 6c 66 2e 20 | 20 41 73 73 75 6d 61 62 |itself. | Assumab|
|000036a0| 6c 79 20 74 68 65 20 64 | 61 74 61 0d 66 69 65 6c |ly the d|ata.fiel|
|000036b0| 64 20 77 69 6c 6c 20 76 | 61 72 79 2c 20 61 63 63 |d will v|ary, acc|
|000036c0| 6f 72 64 69 6e 67 20 74 | 6f 20 74 68 65 20 6f 62 |ording t|o the ob|
|000036d0| 6a 65 63 74 20 74 79 70 | 65 2e 20 20 4f 62 6a 65 |ject typ|e. Obje|
|000036e0| 63 74 73 20 6f 66 74 65 | 6e 20 70 72 69 6e 74 20 |cts ofte|n print |
|000036f0| 74 68 65 6d 73 65 6c 76 | 65 73 20 64 69 66 66 65 |themselv|es diffe|
|00003700| 72 65 6e 74 6c 79 0d 74 | 68 61 6e 20 74 68 65 79 |rently.t|han they|
|00003710| 20 64 72 61 77 2c 20 73 | 6f 20 73 70 65 63 69 66 | draw, s|o specif|
|00003720| 69 63 20 6f 62 6a 65 63 | 74 20 69 6e 66 6f 72 6d |ic objec|t inform|
|00003730| 61 74 69 6f 6e 20 77 69 | 6c 6c 20 68 61 76 65 20 |ation wi|ll have |
|00003740| 74 6f 20 62 65 20 70 61 | 73 73 65 64 20 69 6e 20 |to be pa|ssed in |
|00003750| 66 6f 72 20 74 68 65 73 | 65 20 63 61 73 65 73 2e |for thes|e cases.|
|00003760| 0d 0d 56 48 4d 45 53 53 | 41 47 45 3a 20 20 54 68 |..VHMESS|AGE: Th|
|00003770| 69 73 20 6d 65 73 73 61 | 67 65 20 61 6c 6c 6f 77 |is messa|ge allow|
|00003780| 73 20 74 68 65 20 6f 62 | 6a 65 63 74 20 74 6f 20 |s the ob|ject to |
|00003790| 66 6f 72 6d 61 74 20 74 | 68 65 20 64 61 74 61 20 |format t|he data |
|000037a0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 68 61 74 |informat|ion that|
|000037b0| 20 69 73 20 76 69 65 77 | 65 64 0d 77 68 65 6e 20 | is view|ed.when |
|000037c0| 75 73 69 6e 67 20 74 68 | 65 20 56 69 65 77 20 48 |using th|e View H|
|000037d0| 69 65 72 61 72 63 68 79 | 20 6f 62 6a 65 63 74 20 |ierarchy| object |
|000037e0| 76 69 65 77 69 6e 67 20 | 66 65 61 74 75 72 65 2e |viewing |feature.|
|000037f0| 0d 0d 0d 41 73 20 69 73 | 20 65 76 69 64 65 6e 74 |...As is| evident|
|00003800| 20 66 72 6f 6d 20 74 68 | 65 20 61 62 6f 76 65 20 | from th|e above |
|00003810| 64 65 73 63 72 69 70 74 | 69 6f 6e 73 2c 20 74 68 |descript|ions, th|
|00003820| 65 20 62 65 68 61 76 69 | 6f 72 73 20 66 6f 72 20 |e behavi|ors for |
|00003830| 74 68 65 20 64 69 66 66 | 65 72 65 6e 74 20 74 79 |the diff|erent ty|
|00003840| 70 65 73 20 6f 66 20 6f | 62 6a 65 63 74 73 0d 69 |pes of o|bjects.i|
|00003850| 73 20 63 6f 6d 70 6c 65 | 74 65 6c 79 20 64 65 70 |s comple|tely dep|
|00003860| 65 6e 64 65 6e 74 20 6f | 6e 20 77 68 61 74 20 69 |endent o|n what i|
|00003870| 73 20 64 6f 6e 65 20 66 | 6f 72 20 74 68 65 20 76 |s done f|or the v|
|00003880| 61 72 69 6f 75 73 20 6d | 65 73 73 61 67 65 73 2e |arious m|essages.|
|00003890| 20 20 54 6f 20 64 65 66 | 69 6e 65 20 61 6e 20 6f | To def|ine an o|
|000038a0| 62 6a 65 63 74 20 74 79 | 70 65 2c 0d 79 6f 75 20 |bject ty|pe,.you |
|000038b0| 6e 65 65 64 20 74 6f 20 | 6d 61 6b 65 20 61 6e 20 |need to |make an |
|000038c0| 65 6e 74 72 79 20 69 6e | 74 6f 20 74 77 6f 20 74 |entry in|to two t|
|000038d0| 61 62 6c 65 73 2e 20 20 | 54 68 65 73 65 20 74 61 |ables. |These ta|
|000038e0| 62 6c 65 73 20 61 72 65 | 3a 0d 20 20 20 20 31 29 |bles are|:. 1)|
|000038f0| 20 67 54 72 65 65 4f 62 | 6a 4d 65 74 68 6f 64 73 | gTreeOb|jMethods|
|00003900| 0d 20 20 20 20 32 29 20 | 67 4d 69 6e 54 72 65 65 |. 2) |gMinTree|
|00003910| 4f 62 6a 53 69 7a 65 0d | 54 68 65 73 65 20 74 61 |ObjSize.|These ta|
|00003920| 62 6c 65 73 20 61 72 65 | 20 66 6f 75 6e 64 20 69 |bles are| found i|
|00003930| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio|
|00003940| 6e 20 66 69 6c 65 20 46 | 69 6c 65 2e 63 2e 20 20 |n file F|ile.c. |
|00003950| 41 73 20 79 6f 75 20 61 | 64 64 20 6f 62 6a 65 63 |As you a|dd objec|
|00003960| 74 73 20 74 6f 20 79 6f | 75 72 20 61 70 70 6c 69 |ts to yo|ur appli|
|00003970| 63 61 74 69 6f 6e 2c 0d | 6a 75 73 74 20 6d 61 6b |cation,.|just mak|
|00003980| 65 20 65 6e 74 72 69 65 | 73 20 66 6f 72 20 74 68 |e entrie|s for th|
|00003990| 65 73 65 20 6e 65 77 20 | 6f 62 6a 65 63 74 73 20 |ese new |objects |
|000039a0| 69 6e 74 6f 20 74 68 65 | 73 65 20 74 61 62 6c 65 |into the|se table|
|000039b0| 73 2e 0d 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |s..If yo|u want t|
|000039c0| 68 65 20 64 65 66 61 75 | 6c 74 20 62 65 68 61 76 |he defau|lt behav|
|000039d0| 69 6f 72 73 20 66 6f 72 | 20 61 6e 20 6f 62 6a 65 |iors for| an obje|
|000039e0| 63 74 2c 20 74 68 65 6e | 20 75 73 65 20 6e 69 6c |ct, then| use nil|
|000039f0| 20 66 6f 72 20 74 68 65 | 20 6d 65 74 68 6f 64 20 | for the| method |
|00003a00| 70 72 6f 63 65 64 75 72 | 65 2e 20 20 49 66 0d 74 |procedur|e. If.t|
|00003a10| 68 65 20 6d 65 74 68 6f | 64 20 70 72 6f 63 65 64 |he metho|d proced|
|00003a20| 75 72 65 20 69 73 20 6e | 69 6c 2c 20 74 68 65 6e |ure is n|il, then|
|00003a30| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 20 70 | the obj|ect is p|
|00003a40| 61 73 73 65 64 20 6e 6f | 20 6d 65 73 73 61 67 65 |assed no| message|
|00003a50| 73 2c 20 61 73 20 69 74 | 20 69 73 20 61 73 73 75 |s, as it| is assu|
|00003a60| 6d 65 64 20 74 68 61 74 | 20 69 74 0d 69 73 20 73 |med that| it.is s|
|00003a70| 69 6d 70 6c 65 20 61 6e | 64 20 67 65 6e 65 72 69 |imple an|d generi|
|00003a80| 63 20 65 6e 6f 75 67 68 | 20 74 6f 20 62 65 20 68 |c enough| to be h|
|00003a90| 61 6e 64 6c 65 64 20 61 | 75 74 6f 6d 61 74 69 63 |andled a|utomatic|
|00003aa0| 61 6c 6c 79 2e 20 20 49 | 66 20 79 6f 75 20 6e 65 |ally. I|f you ne|
|00003ab0| 65 64 20 74 6f 20 68 61 | 6e 64 6c 65 20 6a 75 73 |ed to ha|ndle jus|
|00003ac0| 74 20 6f 6e 65 0d 6d 65 | 73 73 61 67 65 20 73 70 |t one.me|ssage sp|
|00003ad0| 65 63 69 66 69 63 61 6c | 6c 79 20 2c 20 79 6f 75 |ecifical|ly , you|
|00003ae0| 20 77 69 6c 6c 20 74 68 | 65 6e 20 6e 65 65 64 20 | will th|en need |
|00003af0| 74 6f 20 64 65 66 69 6e | 65 20 61 20 6d 65 74 68 |to defin|e a meth|
|00003b00| 6f 64 20 70 72 6f 63 65 | 64 75 72 65 2e 20 20 57 |od proce|dure. W|
|00003b10| 69 74 68 20 6d 65 74 68 | 6f 64 20 70 72 6f 63 65 |ith meth|od proce|
|00003b20| 64 75 72 65 73 2c 0d 69 | 74 20 69 73 20 61 6e 20 |dures,.i|t is an |
|00003b30| 61 6c 6c 2d 6f 72 2d 6e | 6f 74 68 69 6e 67 20 73 |all-or-n|othing s|
|00003b40| 69 74 75 61 74 69 6f 6e | 2e 20 20 49 66 20 79 6f |ituation|. If yo|
|00003b50| 75 20 73 65 74 20 74 68 | 65 20 6d 65 74 68 6f 64 |u set th|e method|
|00003b60| 20 70 72 6f 63 65 64 75 | 72 65 20 74 6f 20 6e 6f | procedu|re to no|
|00003b70| 6e 2d 6e 69 6c 20 66 6f | 72 20 61 6e 20 6f 62 6a |n-nil fo|r an obj|
|00003b80| 65 63 74 2c 0d 74 68 65 | 6e 20 74 68 61 74 20 6f |ect,.the|n that o|
|00003b90| 62 6a 65 63 74 20 77 69 | 6c 6c 20 72 65 63 65 69 |bject wi|ll recei|
|00003ba0| 76 65 20 61 6c 6c 20 6d | 65 73 73 61 67 65 73 2e |ve all m|essages.|
|00003bb0| 20 20 46 6f 72 20 74 68 | 65 73 65 20 69 6e 73 74 | For th|ese inst|
|00003bc0| 61 6e 63 65 73 20 79 6f | 75 20 63 61 6e 20 6a 75 |ances yo|u can ju|
|00003bd0| 73 74 20 63 61 6c 6c 20 | 74 68 65 20 64 65 66 61 |st call |the defa|
|00003be0| 75 6c 74 0d 63 6f 64 65 | 20 64 69 72 65 63 74 6c |ult.code| directl|
|00003bf0| 79 2c 20 73 75 63 68 20 | 61 73 20 52 65 61 64 54 |y, such |as ReadT|
|00003c00| 72 65 65 4f 62 6a 44 61 | 74 61 20 61 6e 64 20 57 |reeObjDa|ta and W|
|00003c10| 72 69 74 65 54 72 65 65 | 4f 62 6a 44 61 74 61 20 |riteTree|ObjData |
|00003c20| 66 6f 72 20 68 61 6e 64 | 6c 69 6e 67 20 66 69 6c |for hand|ling fil|
|00003c30| 65 20 49 2f 4f 20 66 6f | 72 0d 74 68 65 20 6f 62 |e I/O fo|r.the ob|
|00003c40| 6a 65 63 74 2e 0d 0d 0d | 53 69 6e 63 65 20 74 68 |ject....|Since th|
|00003c50| 65 20 6f 62 6a 65 63 74 | 20 69 73 20 61 20 68 61 |e object| is a ha|
|00003c60| 6e 64 6c 65 20 6f 66 20 | 74 68 72 65 65 20 63 6f |ndle of |three co|
|00003c70| 6d 70 6f 6e 65 6e 74 73 | 2c 20 72 65 66 65 72 65 |mponents|, refere|
|00003c80| 6e 63 69 6e 67 20 74 68 | 65 20 6f 62 6a 65 63 74 |ncing th|e object|
|00003c90| 20 61 73 20 69 66 20 69 | 74 20 69 73 20 75 6e 69 | as if i|t is uni|
|00003ca0| 71 75 65 0d 63 61 6e 20 | 62 65 20 61 20 62 69 74 |que.can |be a bit|
|00003cb0| 20 6f 66 20 61 20 70 61 | 69 6e 2e 20 20 54 68 65 | of a pa|in. The|
|00003cc0| 20 75 6e 69 71 75 65 20 | 70 6f 72 74 69 6f 6e 20 | unique |portion |
|00003cd0| 6f 66 20 74 68 65 20 6f | 62 6a 65 63 74 2c 20 74 |of the o|bject, t|
|00003ce0| 68 65 20 64 61 74 61 20 | 70 6f 72 74 69 6f 6e 2c |he data |portion,|
|00003cf0| 20 69 73 20 61 63 74 75 | 61 6c 6c 79 20 69 6e 0d | is actu|ally in.|
|00003d00| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 74 68 |the midd|le of th|
|00003d10| 65 20 6f 62 6a 65 63 74 | 2e 20 20 54 6f 20 73 79 |e object|. To sy|
|00003d20| 6e 74 61 63 74 69 63 61 | 6c 6c 79 20 66 69 78 20 |ntactica|lly fix |
|00003d30| 74 68 69 73 20 70 72 6f | 62 6c 65 6d 2c 20 79 6f |this pro|blem, yo|
|00003d40| 75 20 77 69 6c 6c 20 77 | 61 6e 74 20 74 6f 20 64 |u will w|ant to d|
|00003d50| 65 66 69 6e 65 20 73 6f | 6d 65 0d 6d 61 63 72 6f |efine so|me.macro|
|00003d60| 73 20 66 6f 72 20 64 65 | 72 65 66 65 72 65 6e 63 |s for de|referenc|
|00003d70| 69 6e 67 20 69 6e 74 6f | 20 61 6e 20 6f 62 6a 65 |ing into| an obje|
|00003d80| 63 74 20 77 69 74 68 20 | 61 70 70 72 6f 70 72 69 |ct with |appropri|
|00003d90| 61 74 65 20 6f 62 6a 65 | 63 74 2d 74 79 70 65 20 |ate obje|ct-type |
|00003da0| 74 79 70 65 63 61 73 74 | 69 6e 67 2e 20 20 49 6e |typecast|ing. In|
|00003db0| 0d 46 69 6c 65 46 6f 72 | 6d 61 74 2e 68 20 79 6f |.FileFor|mat.h yo|
|00003dc0| 75 20 77 69 6c 6c 20 66 | 69 6e 64 20 73 6f 6d 65 |u will f|ind some|
|00003dd0| 20 73 75 63 68 20 64 65 | 72 65 66 65 72 65 6e 63 | such de|referenc|
|00003de0| 69 6e 67 20 6d 61 63 72 | 6f 73 2e 20 20 54 68 65 |ing macr|os. The|
|00003df0| 79 20 61 72 65 20 69 6e | 20 74 68 65 20 66 6f 72 |y are in| the for|
|00003e00| 6d 3a 0d 0d 23 64 65 66 | 69 6e 65 20 6d 44 65 72 |m:..#def|ine mDer|
|00003e10| 65 66 52 6f 6f 74 28 68 | 6e 64 6c 29 20 20 20 20 |efRoot(h|ndl) |
|00003e20| 20 28 28 52 6f 6f 74 4f | 62 6a 2a 29 28 28 2a 68 | ((RootO|bj*)((*h|
|00003e30| 6e 64 6c 29 20 2b 20 31 | 29 29 0d 0d 54 68 69 73 |ndl) + 1|))..This|
|00003e40| 20 6d 61 63 72 6f 20 61 | 6c 6c 6f 77 73 20 79 6f | macro a|llows yo|
|00003e50| 75 20 74 6f 20 77 72 69 | 74 65 20 63 6f 64 65 20 |u to wri|te code |
|00003e60| 74 68 61 74 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 20 |that loo|ks like |
|00003e70| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 3a 0d 0d |the foll|owing:..|
|00003e80| 20 20 20 20 6e 75 6d 53 | 65 6c 65 63 74 65 64 20 | numS|elected |
|00003e90| 3d 20 6d 44 65 72 65 66 | 52 6f 6f 74 28 72 6f 6f |= mDeref|Root(roo|
|00003ea0| 74 29 2d 3e 6e 75 6d 53 | 65 6c 65 63 74 65 64 3b |t)->numS|elected;|
|00003eb0| 0d 0d 54 68 65 20 6f 6e | 6c 79 20 64 61 6e 67 65 |..The on|ly dange|
|00003ec0| 72 20 77 69 74 68 20 74 | 68 69 73 20 69 73 20 74 |r with t|his is t|
|00003ed0| 68 61 74 20 74 68 65 20 | 68 61 6e 64 6c 65 20 74 |hat the |handle t|
|00003ee0| 68 61 74 20 69 73 20 64 | 65 72 65 66 65 72 65 6e |hat is d|ereferen|
|00003ef0| 63 65 64 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 |ced does|n't have|
|00003f00| 20 74 6f 20 62 65 20 6f | 66 20 74 79 70 65 0d 52 | to be o|f type.R|
|00003f10| 6f 6f 74 4f 62 6a 2e 20 | 20 49 74 20 63 61 6e 20 |ootObj. | It can |
|00003f20| 62 65 20 6f 66 20 61 6e | 79 20 74 79 70 65 2e 20 |be of an|y type. |
|00003f30| 20 54 68 69 73 20 69 73 | 20 63 6f 6e 76 65 6e 69 | This is| conveni|
|00003f40| 65 6e 74 20 61 6e 64 20 | 6e 6f 74 2e 20 20 49 74 |ent and |not. It|
|00003f50| 20 61 6c 6c 6f 77 73 20 | 6f 62 6a 65 63 74 73 20 | allows |objects |
|00003f60| 6f 66 20 64 69 66 66 65 | 72 65 6e 74 0d 74 79 70 |of diffe|rent.typ|
|00003f70| 65 73 20 74 6f 20 62 65 | 20 74 72 65 61 74 65 64 |es to be| treated|
|00003f80| 20 73 69 6d 69 6c 61 72 | 6c 79 20 6f 72 20 64 69 | similar|ly or di|
|00003f90| 66 66 65 72 65 6e 74 6c | 79 2c 20 77 68 69 63 68 |fferentl|y, which|
|00003fa0| 65 76 65 72 20 74 68 65 | 20 63 6f 64 65 20 64 65 |ever the| code de|
|00003fb0| 6d 61 6e 64 73 2e 0d 0d | 0d 54 68 65 72 65 20 61 |mands...|.There a|
|00003fc0| 72 65 20 74 77 6f 20 64 | 65 66 69 6e 65 73 20 69 |re two d|efines i|
|00003fd0| 6e 20 46 69 6c 65 46 6f | 72 6d 61 74 2e 68 20 74 |n FileFo|rmat.h t|
|00003fe0| 68 61 74 20 49 20 73 68 | 6f 75 6c 64 20 6d 65 6e |hat I sh|ould men|
|00003ff0| 74 69 6f 6e 2e 20 20 54 | 68 65 73 65 20 61 72 65 |tion. T|hese are|
|00004000| 3a 0d 31 29 20 4d 41 58 | 4e 55 4d 55 4e 44 4f 53 |:.1) MAX|NUMUNDOS|
|00004010| 0d 32 29 20 4e 55 4d 53 | 41 56 45 55 4e 44 4f 53 |.2) NUMS|AVEUNDOS|
|00004020| 0d 0d 54 68 65 73 65 20 | 67 6f 76 65 72 6e 20 74 |..These |govern t|
|00004030| 68 65 20 64 65 70 74 68 | 20 6f 66 20 74 68 65 20 |he depth| of the |
|00004040| 75 6e 64 6f 20 6d 65 63 | 68 61 6e 69 73 6d 2e 0d |undo mec|hanism..|
|00004050| 0d 4d 41 58 4e 55 4d 55 | 4e 44 4f 53 20 69 73 20 |.MAXNUMU|NDOS is |
|00004060| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |the maxi|mum numb|
|00004070| 65 72 20 6f 66 20 75 6e | 64 6f 73 20 74 68 61 74 |er of un|dos that|
|00004080| 20 77 69 6c 6c 20 62 65 | 20 72 65 63 6f 72 64 65 | will be| recorde|
|00004090| 64 20 62 65 66 6f 72 65 | 20 74 68 65 20 6f 6c 64 |d before| the old|
|000040a0| 65 73 74 20 61 72 65 0d | 61 75 74 6f 6d 61 74 69 |est are.|automati|
|000040b0| 63 61 6c 6c 79 20 70 75 | 72 67 65 64 2e 20 20 54 |cally pu|rged. T|
|000040c0| 68 69 73 20 63 61 6e 20 | 62 65 20 73 65 74 20 75 |his can |be set u|
|000040d0| 70 20 74 6f 20 36 35 35 | 33 35 2c 20 69 66 20 79 |p to 655|35, if y|
|000040e0| 6f 75 20 73 6f 20 77 69 | 73 68 2c 20 61 6c 74 68 |ou so wi|sh, alth|
|000040f0| 6f 75 67 68 20 74 68 61 | 74 20 77 69 6c 6c 0d 63 |ough tha|t will.c|
|00004100| 61 75 73 65 20 61 20 6c | 6f 74 20 6f 66 20 75 6e |ause a l|ot of un|
|00004110| 64 6f 20 68 69 65 72 61 | 72 63 68 79 20 6f 62 6a |do hiera|rchy obj|
|00004120| 65 63 74 20 74 6f 20 62 | 65 20 6b 65 70 74 20 61 |ect to b|e kept a|
|00004130| 72 6f 75 6e 64 20 61 6e | 64 20 69 73 20 6d 6f 72 |round an|d is mor|
|00004140| 65 20 74 68 61 6e 20 61 | 6e 79 20 68 75 6d 61 6e |e than a|ny human|
|00004150| 20 75 73 65 72 0d 63 61 | 6e 20 63 6f 6d 70 72 65 | user.ca|n compre|
|00004160| 68 65 6e 64 2e 0d 0d 4e | 55 4d 53 41 56 45 55 4e |hend...N|UMSAVEUN|
|00004170| 44 4f 53 20 69 73 20 74 | 68 65 20 6d 61 78 69 6d |DOS is t|he maxim|
|00004180| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 75 6e 64 |um numbe|r of und|
|00004190| 6f 73 20 74 68 61 74 20 | 61 72 65 20 73 61 76 65 |os that |are save|
|000041a0| 64 20 61 6c 6f 6e 67 20 | 77 69 74 68 20 74 68 65 |d along |with the|
|000041b0| 20 64 6f 63 75 6d 65 6e | 74 2e 20 20 49 66 20 74 | documen|t. If t|
|000041c0| 68 69 73 0d 6e 75 6d 62 | 65 72 20 69 66 20 6e 6f |his.numb|er if no|
|000041d0| 6e 2d 7a 65 72 6f 2c 20 | 74 68 65 6e 20 77 68 65 |n-zero, |then whe|
|000041e0| 6e 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 69 |n the do|cument i|
|000041f0| 73 20 6f 70 65 6e 65 64 | 2c 20 74 68 65 20 75 73 |s opened|, the us|
|00004200| 65 72 20 6d 61 79 20 61 | 6c 72 65 61 64 79 20 68 |er may a|lready h|
|00004210| 61 76 65 20 73 6f 6d 65 | 20 75 6e 64 6f 73 0d 74 |ave some| undos.t|
|00004220| 68 61 74 20 63 61 6e 20 | 62 65 20 70 65 72 66 6f |hat can |be perfo|
|00004230| 72 6d 65 64 20 66 72 6f | 6d 20 74 68 65 20 6c 61 |rmed fro|m the la|
|00004240| 73 74 20 65 64 69 74 69 | 6e 67 20 73 65 73 73 69 |st editi|ng sessi|
|00004250| 6f 6e 2e 20 20 53 65 74 | 74 69 6e 67 20 74 68 69 |on. Set|ting thi|
|00004260| 73 20 63 6f 6e 73 74 61 | 6e 74 20 74 6f 20 7a 65 |s consta|nt to ze|
|00004270| 72 6f 20 6d 61 6b 65 73 | 0d 74 68 65 20 61 70 70 |ro makes|.the app|
|00004280| 6c 69 63 61 74 69 6f 6e | 20 73 61 76 65 20 6e 6f |lication| save no|
|00004290| 20 75 6e 64 6f 73 20 61 | 6c 6f 6e 67 20 77 69 74 | undos a|long wit|
|000042a0| 68 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2e 0d |h the do|cument..|
|000042b0| 0d 0d 49 74 20 69 73 20 | 67 65 6e 65 72 61 6c 6c |..It is |generall|
|000042c0| 79 20 62 65 74 74 65 72 | 20 69 66 20 79 6f 75 72 |y better| if your|
|000042d0| 20 6f 62 6a 65 63 74 27 | 73 20 64 61 74 61 20 61 | object'|s data a|
|000042e0| 72 65 61 20 69 73 20 66 | 6c 61 74 2e 20 20 54 68 |rea is f|lat. Th|
|000042f0| 69 73 20 69 73 20 67 6f | 6f 64 20 66 6f 72 20 61 |is is go|od for a|
|00004300| 20 6e 75 6d 62 65 72 20 | 6f 66 20 72 65 61 73 6f | number |of reaso|
|00004310| 6e 73 3a 0d 0d 31 29 20 | 20 49 74 20 61 6c 6c 6f |ns:..1) | It allo|
|00004320| 77 73 20 79 6f 75 20 74 | 6f 20 75 73 65 20 74 68 |ws you t|o use th|
|00004330| 65 20 64 65 66 61 75 6c | 74 20 73 74 72 65 61 6d |e defaul|t stream|
|00004340| 69 6e 67 20 66 75 6e 63 | 74 69 6f 6e 73 20 66 6f |ing func|tions fo|
|00004350| 72 20 46 52 45 41 44 4d | 45 53 53 41 47 45 2c 20 |r FREADM|ESSAGE, |
|00004360| 46 57 52 49 54 45 4d 45 | 53 53 41 47 45 2c 0d 20 |FWRITEME|SSAGE,. |
|00004370| 20 20 20 48 52 45 41 44 | 4d 45 53 53 41 47 45 2c | HREAD|MESSAGE,|
|00004380| 20 48 57 52 49 54 45 4d | 45 53 53 41 47 45 2e 0d | HWRITEM|ESSAGE..|
|00004390| 32 29 20 20 59 6f 75 72 | 20 61 70 70 6c 69 63 61 |2) Your| applica|
|000043a0| 74 69 6f 6e 20 75 73 65 | 73 20 66 65 77 65 72 20 |tion use|s fewer |
|000043b0| 68 61 6e 64 6c 65 73 2e | 20 20 54 68 65 20 6d 6f |handles.| The mo|
|000043c0| 72 65 20 68 61 6e 64 6c | 65 73 2c 20 74 68 65 20 |re handl|es, the |
|000043d0| 73 6c 6f 77 65 72 20 74 | 68 65 20 6d 65 6d 6f 72 |slower t|he memor|
|000043e0| 79 20 6d 61 6e 61 67 65 | 72 20 67 65 74 73 2e 0d |y manage|r gets..|
|000043f0| 0d 4f 66 20 63 6f 75 72 | 73 65 2c 20 66 6f 72 20 |.Of cour|se, for |
|00004400| 73 6f 6d 65 20 6f 62 6a | 65 63 74 2c 20 62 65 69 |some obj|ect, bei|
|00004410| 6e 67 20 63 6f 6d 70 6c | 65 74 65 6c 79 20 66 6c |ng compl|etely fl|
|00004420| 61 74 20 69 73 20 75 6e | 72 65 61 73 6f 6e 61 62 |at is un|reasonab|
|00004430| 6c 65 2e 20 20 54 68 65 | 20 66 72 61 6d 65 77 6f |le. The| framewo|
|00004440| 72 6b 20 73 75 70 70 6f | 72 74 73 20 62 6f 74 68 |rk suppo|rts both|
|00004450| 20 66 6c 61 74 0d 61 6e | 64 20 6e 6f 6e 2d 66 6c | flat.an|d non-fl|
|00004460| 61 74 20 6f 62 6a 65 63 | 74 73 2c 20 73 6f 20 74 |at objec|ts, so t|
|00004470| 68 65 20 63 68 6f 69 63 | 65 20 69 73 20 79 6f 75 |he choic|e is you|
|00004480| 72 73 2e 0d 0d 0d 03 fe | 00 33 00 00 00 00 00 0b |rs......|.3......|
|00004490| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000044a0| 03 12 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 03 19 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 03 1d 00 0b 00 09 00 04 |........|........|
|000044d0| 05 00 00 09 00 00 00 00 | 00 00 00 00 03 24 00 0b |........|.....$..|
|000044e0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 0f 6c 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |.l......|........|
|00004500| 00 00 00 00 0f 77 00 0b | 00 09 00 04 00 00 00 09 |.....w..|........|
|00004510| 00 00 00 00 00 00 00 00 | 0f c6 00 0b 00 09 00 04 |........|........|
|00004520| 05 00 00 09 00 00 00 00 | 00 00 00 00 0f d3 00 0b |........|........|
|00004530| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 11 7b 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |.{......|........|
|00004550| 00 00 00 00 11 87 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 11 97 00 0b 00 09 00 04 |........|........|
|00004570| 05 00 00 09 00 00 00 00 | 00 00 00 00 11 a3 00 0b |........|........|
|00004580| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 12 6e 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |.n......|........|
|000045a0| 00 00 00 00 12 77 00 0b | 00 09 00 04 00 00 00 09 |.....w..|........|
|000045b0| 00 00 00 00 00 00 00 00 | 12 a6 00 0b 00 09 00 04 |........|........|
|000045c0| 05 00 00 09 00 00 00 00 | 00 00 00 00 12 ae 00 0b |........|........|
|000045d0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 12 be 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 12 c6 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00004600| 00 00 00 00 00 00 00 00 | 14 00 00 0b 00 09 00 04 |........|........|
|00004610| 05 00 00 09 00 00 00 00 | 00 00 00 00 14 08 00 0b |........|........|
|00004620| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004630| 18 98 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |........|........|
|00004640| 00 00 00 00 18 a3 00 0b | 00 09 00 04 00 00 00 09 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 1e 82 00 0b 00 09 00 04 |........|........|
|00004660| 05 00 00 09 00 00 00 00 | 00 00 00 00 1e 8b 00 0b |........|........|
|00004670| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004680| 20 45 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 | E......|........|
|00004690| 00 00 00 00 20 4e 00 0b | 00 09 00 04 00 00 00 09 |.... N..|........|
|000046a0| 00 00 00 00 00 00 00 00 | 21 cd 00 0b 00 09 00 04 |........|!.......|
|000046b0| 05 00 00 09 00 00 00 00 | 00 00 00 00 21 d9 00 0b |........|....!...|
|000046c0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 22 4c 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |"L......|........|
|000046e0| 00 00 00 00 22 53 00 0b | 00 09 00 04 00 00 00 09 |...."S..|........|
|000046f0| 00 00 00 00 00 00 00 00 | 23 4e 00 0b 00 09 00 04 |........|#N......|
|00004700| 05 00 00 09 00 00 00 00 | 00 00 00 00 23 55 00 0b |........|....#U..|
|00004710| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 25 00 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |%.......|........|
|00004730| 00 00 00 00 25 0c 00 0b | 00 09 00 04 00 00 00 09 |....%...|........|
|00004740| 00 00 00 00 00 00 00 00 | 25 42 00 0b 00 09 00 04 |........|%B......|
|00004750| 05 00 00 09 00 00 00 00 | 00 00 00 00 25 49 00 0b |........|....%I..|
|00004760| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 27 43 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |'C......|........|
|00004780| 00 00 00 00 27 52 00 0b | 00 09 00 04 00 00 00 09 |....'R..|........|
|00004790| 00 00 00 00 00 00 00 00 | 29 c1 00 0b 00 09 00 04 |........|).......|
|000047a0| 05 00 00 09 00 00 00 00 | 00 00 00 00 29 d1 00 0b |........|....)...|
|000047b0| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 2c 4d 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |,M......|........|
|000047d0| 00 00 00 00 2c 5d 00 0b | 00 09 00 04 00 00 00 09 |....,]..|........|
|000047e0| 00 00 00 00 00 00 00 00 | 2d 86 00 0b 00 09 00 04 |........|-.......|
|000047f0| 05 00 00 09 00 00 00 00 | 00 00 00 00 2d 90 00 0b |........|....-...|
|00004800| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004810| 2e 59 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |.Y......|........|
|00004820| 00 00 00 00 2e 62 00 0b | 00 09 00 04 00 00 00 09 |.....b..|........|
|00004830| 00 00 00 00 00 00 00 00 | 37 e7 00 0b 00 09 00 04 |........|7.......|
|00004840| 05 00 00 09 00 00 00 00 | 00 00 00 00 37 f6 00 0b |........|....7...|
|00004850| 00 09 00 04 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 37 fb 00 0b 00 09 00 04 | 05 00 00 09 00 00 00 00 |7.......|........|
|00004870| 00 00 00 00 38 0b 00 0b | 00 09 00 04 00 00 00 09 |....8...|........|
|00004880| 00 00 00 00 00 00 | |...... | |
+--------+-------------------------+-------------------------+--------+--------+